aspose file tools*
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
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
 
Consider Paul's rocket mass heater.
 
subject: Help with Combo box and action listener