Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

actionPerformed method problem for filechooser

 
vicky ma
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic