I need help with javax.swing again... sorry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blue1244
    New Member
    • Aug 2013
    • 39

    #1

    I need help with javax.swing again... sorry

    I need help with javax swing again and I have this window where it will pop up but I need help with the drop down selection thing, how can I get it to where it will based on what I have selected open another window?
    The picture of the window is an attachment.

    But I need help if what I'm asking is impossible please tell me how I can get it to use the drop down button thing to work, sorry I'm new to this.
    Attached Files
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    It is possible, no doubt. First of all I'd read the ComboBox tutorial on oracla.com. This will show you a lot of what you need. Then check out the JComboBox API documentation. This shows you which methods are available when you have such a combobox; including getSelectedItem () and getSelectedInde x(). So, you can find out which item in the list is selected. Just continue after pressing the button depending on the selection in the list. :-)

    Comment

    Working...