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

control one JComboBox from another

 
nick fox
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have two JComboBoxes.when i select an item from the first combobox i want to populate the second combobox with items depending on the selection made in the first combobox.
example : i have 3 items in the first combobox : A, B and C
A = 1,2,3
B = 4,5,6
C = 7,8,9
if i select B from first combobox i want to put 4,5,6 into second combobox.
is this possible??
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic