Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Default Icon of JFileChooser

 
Kriti Garg
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no setIconImage(Icon ) method available in JFileChooser,
defalut cup icon is shown on it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic