my dog learned polymorphism*
The moose likes Applets and the fly likes invoking comboBox! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "invoking comboBox!" Watch "invoking comboBox!" New topic
Author

invoking comboBox!

Christina Smith
Greenhorn

Joined: Apr 05, 2005
Posts: 12
Hi

I've got an applet with a comboBox in it, i've set an action listener for the combo, and i want to test that the code i've got attached to it when the it is invoked... so i created a test class but i dont know how to invoke the combo box (to test the code)... normally i go for doClick to invoke the buttons without launching the applet, but i dont know what to do for the comboBox!

any help?
Thank you
Christin
Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
Not sure but after attaching the Listener if you change the state of the comboBox by setting the selected value at different index then it will trigger the actionListener.
Please let me know if it does not


-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invoking comboBox!