School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 339,903 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,584 people online right now. Registration is fast and FREE... Join Now!



Window Icon - Solved

Window Icon - Solved Change the Image in top left corner, the Window Icon Rate Topic: -----

#1 Fuzzyness  Icon User is offline

  • Comp Sci Student
  • Icon
  • Group: Expert w/DIC++
  • Posts: 1,187
  • Joined: 06-March 09


Dream Kudos: 150

Posted 22 May 2009 - 01:01 PM

Ok, so I am looking for a way to change the Icon of the window to a Logo that I have. Anyone have suggestions or know a way to do it? I have tried to use setImageIcon but I just couldnt get it to work for some reason. If you have a little snippet that would be cool.

Thanks in Advance!


Edit - Solved**

when I was calling setIconImage(newImageIcon("secLogo.gif")) I needed to add onto that, that wasnt end of call. that only makes thhe image, so i have to add this onto it: .getImage(); Works now. Thanks though guys!!

This post has been edited by Fuzzyness: 22 May 2009 - 01:15 PM

Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month