File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Changing Default Icon of JFileChooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Changing Default Icon of JFileChooser" Watch "Changing Default Icon of JFileChooser" New topic
Author

Changing Default Icon of JFileChooser

Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
Hi All,

Can anybody help me out on changing default icon of JFileChooser

and setting my own Icon.

I cannot use the parent icon scheme


Kriti
Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
It's simple. Just set the Icon for the Main frame.



Then pass the frame as arguement to the FileChooser.


That's it.
Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
There is no setIconImage(Icon ) method available in JFileChooser,
defalut cup icon is shown on it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Default Icon of JFileChooser
 
Similar Threads
Is there any Browse button control in Swing ??
Simple file browser !!!!!!
JDialog With Icon
File browser crash course
how to write coding for browse button in java swing?