Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

two jcomboBox then  RSS feed

 
kajal sharma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using jcombobox in my application.For one combobox i am using JComboBox
source= (JComboBox)evt.getSource();
String item =(String)source.getSelectedItem();

What I do if I use two combobox as in item the value of the second combox box will go.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if you had a bunch of combo boxes, item will refer to the value of the one which generated the event you are handling.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!