Results 1 to 5 of 5
  1. #1
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default how i can put image in background of frame??

    hi
    i designed aframe and i want to put image to be the background of frame then i want to add component to this frame, how i can do that by netbeans ???

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    There is no direct way to do this using NetBeans. What you have to do is add a label with the image you want to use.

  3. #3
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    There is no direct way to do this using NetBeans. What you have to do is add a label with the image you want to use.
    i know this way and i apply it , but in this way i cant add button for example on the image ... if you know way to add component on the image please reply

    thank you very much
    Last edited by ahmed13; 01-15-2009 at 12:58 PM.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Did you try to add an ImageIcon to a panel?
    i put image in Jlable in the JFrame i use netbeans design to do that ..
    if you hava another way you can put an example ..

    i am so sorry .. my english Language is not good.
    Last edited by ahmed13; 01-15-2009 at 05:52 PM.

Similar Threads

  1. Background Image of Applet
    By BangJava in forum Java Applets
    Replies: 8
    Last Post: 11-24-2010, 05:48 AM
  2. Replies: 13
    Last Post: 10-21-2008, 02:32 PM
  3. Image as background
    By Java.child in forum AWT / Swing
    Replies: 2
    Last Post: 10-02-2008, 11:37 PM
  4. Center background image
    By Floetic in forum AWT / Swing
    Replies: 1
    Last Post: 04-24-2008, 05:50 PM
  5. Why this image background is black ?
    By samson in forum Java 2D
    Replies: 1
    Last Post: 07-17-2007, 04: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
  •