Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
Changing Default Icon of JFileChooser
Kriti Garg
Ranch Hand
Posts: 50
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It's simple. Just set the Icon for the Main frame.
ImageIcon myIcon= new ImageIcon(ClassLoader.getSystemResource("images/main.gif")); this.setIconImage(myIcon.getImage());
Then pass the frame as arguement to the FileChooser.
fileChooser.showOpenDialog(frame)
That's it.
Kriti Garg
Ranch Hand
Posts: 50
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There is no setIconImage(Icon ) method available in JFileChooser,
defalut cup icon is shown on it
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Is there any Browse button control in Swing ??
JDialog With Icon
Simple file browser !!!!!!
File browser crash course
how to write coding for browse button in java swing?
More...