wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Help with Combo box and action listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with Combo box and action listener" Watch "Help with Combo box and action listener" New topic
Author

Help with Combo box and action listener

sunil menhdiratta
Greenhorn

Joined: Jun 25, 2011
Posts: 1
Hi,

I have problem with below code, i want to populate the value of combobox into textfield,

I have defined action listener- migButtonAction. seems its in the new actionlistener class-migButtonAction, the object combo1 and myField is not visible,

I know it cant be as its defined in main class, Please suggest me . I tried defining those object as public but its not allowing me.

Please help

-Sunil

Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
check the below code with some modification from your code......



SCJP 1.4, SCWCD 1.4
 
Don't get me started about those stupid light bulbs.
 
subject: Help with Combo box and action listener
 
Similar Threads
button colors, etc.
Won't Display
What is the best way to create GUI components- in-line, methods, inner classes or separate classes
mysql refused rmi connection
Blank Frame or Panel