This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: Changing Default Icon of JFileChooser
 
Similar Threads
how to write coding for browse button in java swing?
JDialog With Icon
File browser crash course
Simple file browser !!!!!!
Is there any Browse button control in Swing ??