File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCOMBOBOX with PopMenu Problem" Watch "JCOMBOBOX with PopMenu Problem" New topic

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
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
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:
subject: JCOMBOBOX with PopMenu Problem
Similar Threads
How to synchronize the data in two panels?
JComboBox with more than one row
!!!! URGENT !!!!! JComboBox popup problem
regarding combobox in frame
J2EE Pattern for Configuration Management ?