aspose file tools*
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
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: 9990

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!]
I agree. Here's the link:
subject: actionPerformed method problem for filechooser
Similar Threads
Convert the .Tiff file to .png and insert into the database.
excluding files using FileFilter
flush JTextArea immediately
actionPerformed not being called properly by child component