Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Default Icon of JFileChooser  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!