File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JCOMBOBOX with PopMenu Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCOMBOBOX with PopMenu Problem" Watch "JCOMBOBOX with PopMenu Problem" New topic
Author

JCOMBOBOX with PopMenu Problem

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Hello All,
i want to have the elements in combobox like below
A
B-->C
D
E
F
thats is B should show an arrow and arrow will have two elements that is C and D and i will select D , then
combobox should show B.D .
How Can i achieve this ??
thanks in advance
vinaya
Greg Brouelette
Ranch Hand

Joined: Jan 23, 2002
Posts: 144
Sounds like what you really need is a menu. Whenever you find yourself saying "I need to modify a standard GUI component to do something very different from it's normal behavior" then that's a good sign that the GUI needs to be re-designed.
Remember, the real issue isn't so much "How do I make the combo box do this". The real issue will become "Will my user expect to see sub-menues in a combo box?". I don't think a reasonable user would expect to see that behavior in a combo box.
I know that's not much help on your original question, but I hope it does help guide you to a solution.


For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCOMBOBOX with PopMenu Problem
 
Similar Threads
!!!! URGENT !!!!! JComboBox popup problem
How to synchronize the data in two panels?
regarding combobox in frame
JComboBox with more than one row
J2EE Pattern for Configuration Management ?