File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with Combo box and action listener