Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Why wont ImageIcons work
Why wont ImageIcons work [message #1858676] Sat, 15 April 2023 16:01 Go to next message
Billy Estes is currently offline Billy EstesFriend
Messages: 11
Registered: April 2023
Junior Member
I created a jframe and am trying to put a icon in the top bar this is my code
ImageIcon image = new ImageIcon("free_icon_1.jpg");
frame.setIconImage(image.getImage());
i have my icon in the directory that the main method is in just starting out anyhelp would be appreciated
Re: Why wont ImageIcons work [message #1858682 is a reply to message #1858676] Sun, 16 April 2023 06:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32866
Registered: July 2009
Senior Member
This sounds like a general Java question about AWT which would be better asked in a general forum such as stackoverflow. Note that you didn't actually provide enough information, i.e., what is the problem and what would you like to know? How might someone reproduce your problem?

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Rellinks in Eclipse
Next Topic:started tutorial
Goto Forum:
  


Current Time: Thu Jul 13 03:42:58 GMT 2023

Powered by FUDForum. Page generated in 0.02460 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top