Results 1 to 3 of 3
  1. #1
    gyijhbk is offline Member
    Join Date
    Feb 2012
    Posts
    61
    Rep Power
    0

    Default How to add an image to JFrame?

    How to add an image to JFrame?

  2. #2
    gauravfzd's Avatar
    gauravfzd is offline Member
    Join Date
    Oct 2010
    Location
    India
    Posts
    72
    Rep Power
    0

    Default Re: How to add an image to JFrame?

    You can apply a image on a JLabel..
    by using the setter for Icon (setIcon(Icon) method) and can then add it to the JFrame, JPanel etc...

  3. #3
    gyijhbk is offline Member
    Join Date
    Feb 2012
    Posts
    61
    Rep Power
    0

    Default Re: How to add an image to JFrame?

    Quote Originally Posted by gauravfzd View Post
    You can apply a image on a JLabel..
    by using the setter for Icon (setIcon(Icon) method) and can then add it to the JFrame, JPanel etc...
    10 x

Similar Threads

  1. need help JFrame+image
    By The Brain Freak in forum New To Java
    Replies: 1
    Last Post: 02-05-2012, 04:03 PM
  2. JFrame image background
    By 851marc in forum NetBeans
    Replies: 5
    Last Post: 03-09-2010, 07:27 PM
  3. Add an image to JFrame
    By Eranga in forum AWT / Swing
    Replies: 4
    Last Post: 02-01-2010, 04:09 PM
  4. JFrame + image
    By Blacknight in forum New To Java
    Replies: 2
    Last Post: 05-07-2009, 06:34 AM
  5. can display image in JFrame?
    By xCLARAx in forum AWT / Swing
    Replies: 14
    Last Post: 04-03-2009, 08:02 PM

Posting Permissions

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