Results 1 to 4 of 4
  1. #1
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default JFrame Set Icon?

    How do I set the icon of my JFrame? (How am I going to write where the location of the image I wanna change it to is?)

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    Java Code:
    frame.setIconImage(...);
    You can use ImageIO to read the Image.

  3. #3
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default

    How do i use the ImageIO?

  4. #4
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    Read the API for information or search the forum/web for posted examples.

Similar Threads

  1. Adding another icon to an icon
    By whateverme in forum New To Java
    Replies: 11
    Last Post: 03-29-2011, 08:00 PM
  2. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  3. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  4. [SOLVED] JFrame Image Icon
    By Ch4os in forum NetBeans
    Replies: 1
    Last Post: 11-24-2008, 10:53 AM
  5. Problem in setting icon for JFrame!
    By pranav13 in forum AWT / Swing
    Replies: 8
    Last Post: 11-04-2008, 05:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •