This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Changing Default Icon of JFileChooser