This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes actionPerformed method problem for filechooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "actionPerformed method problem for filechooser" Watch "actionPerformed method problem for filechooser" New topic

actionPerformed method problem for filechooser

vicky ma
Ranch Hand

Joined: May 13, 2009
Posts: 38
I have question on actionPerformed method.
does this method runs on thread ?

as i can see in my code i have scenario as below :
(Its abstract from my code base : )

here whenever i print that path string i get null .
how to get path which is set in action method ? please provide example so that i can understand it.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170

What is abstract?

From what code you have posted, I see two problems to start with
1) Nobody is calling actionPerformed
2) You are not showing the file chooser dialog.

Recommended reading

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
jQuery in Action, 2nd edition
subject: actionPerformed method problem for filechooser
Similar Threads
actionPerformed not being called properly by child component
excluding files using FileFilter
flush JTextArea immediately
Convert the .Tiff file to .png and insert into the database.