Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Norm

Thread: need help JFrame+image

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default need help JFrame+image

    I created a JFrame with a menubar and i want to add an image to the JFrame under the menubar or change background color but preferably the image. please help

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,265
    Rep Power
    25

    Default Re: need help JFrame+image

    What have you tried so far?
    One way is to extend a JPanel, override its paintComponent method and draw the image there.
    Another is to use a JLabel.
    Fubarable likes this.

Similar Threads

  1. set Background image in JFrame
    By redtag in forum AWT / Swing
    Replies: 1
    Last Post: 01-06-2012, 11:01 PM
  2. Cannot get image to load onto JFrame...
    By knightwriter in forum New To Java
    Replies: 3
    Last Post: 12-31-2011, 08:19 PM
  3. Add an image to JFrame
    By Eranga in forum AWT / Swing
    Replies: 4
    Last Post: 02-01-2010, 03:09 PM
  4. JFrame + image
    By Blacknight in forum New To Java
    Replies: 2
    Last Post: 05-07-2009, 05:34 AM
  5. can display image in JFrame?
    By xCLARAx in forum AWT / Swing
    Replies: 14
    Last Post: 04-03-2009, 07: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
  •