Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 combo box help needed
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
leeberman




PostPosted: Sun Apr 10, 2005 2:23 pm   Post subject: combo box help needed

how do u reset the value displayed in a combo box with code?
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sun Apr 10, 2005 2:32 pm   Post subject: (No subject)

Always consult the API reference.

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComboBox.html

I believe you're looking for the setSelectedIndex method.
leeberman




PostPosted: Sun Apr 10, 2005 5:03 pm   Post subject: (No subject)

thanks... i think it is the .setSelectedItem... but thanks for mentioning that site
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: