GeeCON Prague 2014*
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: 10426
    
    8

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!]
 
Consider Paul's rocket mass heater.
 
subject: actionPerformed method problem for filechooser