wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 10167

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 http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link: http://aspose.com/file-tools
subject: actionPerformed method problem for filechooser
Similar Threads
excluding files using FileFilter
Convert the .Tiff file to .png and insert into the database.
actionPerformed not being called properly by child component
flush JTextArea immediately