File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCOMBOBOX with PopMenu Problem

 
vinaya kumar
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 144
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic