[6002] in java-interest
Re: Combo Box
daemon@ATHENA.MIT.EDU (Amy Fowler)
Fri Mar 8 01:50:51 1996
Date: Wed, 6 Mar 1996 08:47:18 -0800
From: Amy.Fowler@Eng.Sun.COM (Amy Fowler)
To: java-interest@java.Eng.Sun.COM, eric@onshore.com
>>I need to implement a Windows-style "Combo box". In other words, it's sorta
>>like the Choice class, but the text in the TextField is editable. I've
>>tried a nuber of things that I'd like to outline here.
>>
>>* Thinking originally that this class was composed of a popup menu and a
>>Textfield, I thought if I could go in and make a new class with the
>>textfield editable, it would work. No. It seems to call a Peer.
>>
>>* I was able to overlap a new textfield over the textfield part of Choice,
>>but don't feel comfortable with this. Tabbing would be screwed up, though I
>>couldn't test it as I was running Windows and tabbing doesn't work.
>>
>>* Tried to simulate it. Tried to use Lists that would show() and hide(), but
>>it also doesn't seem very clean. Plus, the Panel would be oversized to
>>accomodate the larger size of the list.
>>
>>*Looked into Menu's, but haven't seen any way to make them appear anywhere
>>(like popup menu).
PopupMenus will be added in an upcoming release.
One approach you might try is to put the List in a Window object (which is
essentially a modal frame without a border) and then show/hide the window.
Regards,
Amy Moore-Fowler
Java Products Group
JavaSoft
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com