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
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
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
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
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
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at 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...