Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
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:
Java in General
icon
kelly devon
Ranch Hand
Posts: 78
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hello all,
could someone help me out with a code on how to change the icon on my window/frame on the topleft corner to my own personal picture? i.e instead of the
java
cup of
coffee
i want my own personal pic.thanxs in advance
kel
Juanjo Bazan
Ranch Hand
Posts: 231
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use the setIconImage(Image i) method of the Frame (or JFrame) class:
setIconImage(Toolkit.getDefaultToolkit().createImage(YourJFrameClass.class.getResource("images/Logo.gif")));
HTH
Get off me! Here, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
changing default thumb of JSlider
Changing Default Icon of JFileChooser
change the icon of .jar file
Session duplicated
icon on JFrame
More...