Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / October 2007

Tip: Looking for answers? Try searching our database.

Usability: Which (menu) button?

Thread view: 
Karsten Wutzke - 09 Oct 2007 18:55 GMT
Hello!

I have a few settings that are controlled via menu items.

For binary values (true/false or on/off):
Is it better to have regular menu items (JMenuItem) with changing text
or better use toggle menu items (JCheckBoxMenuItem) with constant text
where the check represents on/off state?

For 1 out of n selections:
Basically the same question as above, just with JMenuItem/s vs.
JRadioButtonMenuItem's... (I have to check whether using regular
JMenuItems makes sense at all...)

What are the pros/cons here?

TIA
Karsten
Ed Webb - 10 Oct 2007 11:09 GMT
> Hello!
>
[quoted text clipped - 4 lines]
> or better use toggle menu items (JCheckBoxMenuItem) with constant text
> where the check represents on/off state?

If they are really on/off yes/no options (eg "Show Detail") then I would
use a check box in the menu. If it is switching between two modes
("Simple", "Detailed") then I'd change the text of the option.

> For 1 out of n selections:
> Basically the same question as above, just with JMenuItem/s vs.
> JRadioButtonMenuItem's... (I have to check whether using regular
> JMenuItems makes sense at all...)

I think the use of regular menu items doesn't work in this situation.

> What are the pros/cons here?

As long as you only have a few options like these then menu items are
fine. What I find frustrating is if one needs to set a number of these
options at the same time. Placing them in a menu requires the user to
navigate to the options one by one as clicking on the menu option closes
the menu. For anything over 3 options I would place them in a settings
form and access this through a menu item which I would find far more
user friendly.

Ed!
Roedy Green - 10 Oct 2007 14:16 GMT
>For binary values (true/false or on/off):
>Is it better to have regular menu items (JMenuItem) with changing text
>or better use toggle menu items (JCheckBoxMenuItem) with constant text
>where the check represents on/off state?

The thing that drive me nuts are programs that have a button with
label like "italics".

Does this mean we are IN italics mode now, or does it mean click to GO
into italics mode.

I like a check mark that indicates the current boolean state.  It is
unambiguous.

In FontShower for Swing at http://mindprod.com/applet/fontshower.html
I used an italic button, that goes blue when you are in italic state.
This is not as clear, but it uses less space.  You also get visual
feedback in other ways about the button state.

For two different states e.g read/write, I use a pair of radio
buttons.   See http://mindprod.com/applet/fileio.html

Changing text on a single button would have the IN/GOTO ambiguity.  I
can't think of how to avoid it.  Perhaps it is tolerable on a program
people will use daily, but not on one that people will use just once.

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

CK - 10 Oct 2007 17:42 GMT
>Hello!
>
[quoted text clipped - 4 lines]
>or better use toggle menu items (JCheckBoxMenuItem) with constant text
>where the check represents on/off state?

The standard metaphor is to use check boxes in this case.

>For 1 out of n selections:
>Basically the same question as above, just with JMenuItem/s vs.
>JRadioButtonMenuItem's... (I have to check whether using regular
>JMenuItems makes sense at all...)

For grouped items of which only one can be checked, use radio buttons.

>What are the pros/cons here?

Changing text in general is not so good since you remember what menu
items do by position AND by value.
--
Claus Dragon <clauskick@mpsahotmail.com>
=(UDIC)=
d++ e++ T--
K1!2!3!456!7!S a27
"Coffee is a mocker. So, I am going to mock."

- Me, lately.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.