wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Changing Default Icon of JFileChooser
 
Similar Threads
how to write coding for browse button in java swing?
File browser crash course
Simple file browser !!!!!!
Is there any Browse button control in Swing ??
JDialog With Icon