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
Author

actionPerformed method problem for filechooser

vicky ma
Ranch Hand

Joined: May 13, 2009
Posts: 38
Hi,
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.
Thanks

PS : Its ABSTRACT !
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

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
Convert the .Tiff file to .png and insert into the database.
excluding files using FileFilter
JFileChooser
flush JTextArea immediately
actionPerformed not being called properly by child component