Skip to main content



      Home
Home » Newcomers » Newcomers » Why wont ImageIcons work
Why wont ImageIcons work [message #1858676] Sat, 15 April 2023 12:01 Go to next message
Eclipse UserFriend
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 02:59 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Rellinks in Eclipse
Next Topic:started tutorial
Goto Forum:
  


Current Time: Tue Jun 24 13:14:43 EDT 2025

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

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

Back to the top