Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: JComboBox UI Implementation in MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JComboBox UI Implementation in MacOS X



> I misread the problem I think. Apparently users can only type in the short
> version so the edit field is only 2 characters wide while the menu is full
> text.

Exactly

> Just for my own education, why are you forcing the text entry field to be
so
> short vs. the menu items? To prevent the user from entering something more
> than 2 characters for the shortcut or as a GUI design decision? If the
user
> picks from a menu choice then I guess a 2 letter shortcut is displayed on
> the JComboBox edit field rather than the menu text?

The entry field is part of a table. Forcing the text entry field to be so
short is for space reasons mainly. Also I didn't describe the whole
functionality of the Combo. Its a date/age entry field, where you can either
enter a date or an age (integer) or a "symbolic date" like "BD" for birthday
(the birthday itself is entered at another point in the program). Some of
the symbolic dates have very long full names, so the field would be much too
wide if it had to display them. Currently the field is just wide enough to
display a date in the form 01.01.2001. Ages and short forms of symbolic
dates are shorter than that, so everything looks fine. If you type in a
symbolic date in short from, its corresponding long form is hilited when you
pop up the menu.

> I haven't mucked with the sort of thing you're trying to do. Someone on
this
> list probably has though. I can think of several alternatives that use
> different approaches but they may not be applicable to your case.


References: 
 >Re: JComboBox UI Implementation in MacOS X (From: Ronald Guest <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.