how to make a Jfilechooser invisible?
In my jframe i have to take a file of users choice.so i kept text fieds a browse button and in its mouse click i can call the jfilechooser.this is my idea,but i didnt see any methods for filechooser to make it invisible.so that i can make it available only at the time wen i click the button...
plz help me...or is there any other method?
> so that i can make it available only at the
> time wen i click the button...
Let the button's event listener create the JFileChooser. JFileChooser is modal, so when you click the button, it will appear and will go away when you're done using it, returning the focus to your application.
[url=http://java.sun.com/docs/books/tutorial/uiswing/events/]The Java?Tutorial - Writing Event Listeners[/url]
[url=http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html]The Java?Tutorial - How To Use File Choosers[/url]
~