This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes POSITIONING IMAGEICON Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "POSITIONING IMAGEICON" Watch "POSITIONING IMAGEICON" New topic
Author

POSITIONING IMAGEICON

Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
Hi i have been able to display an image as background. Now i want to display an Image icon on a Jlabel and POSITION the IMAGE ICOn or the JLABEL. Please HELP ME out. Million thanks for any help, examples or codes. Thanks again
Brandon Broschinsky
Ranch Hand

Joined: Aug 21, 2004
Posts: 41
More information on what you are trying to do would help. To add an imageicon to a label use

Jlabel label = new JLabel(new ImageIcon("Path to your icon"));

and you can just add the label to your frame. Once again more details on what you are trying to achieve will help to give you a more detailed answer.
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
This is the 4th thread you have created for this one problem.
The others are
  • 1st
  • 2nd
  • 3rd


  • Don't you realize that you are alienating the helpful people here to do this? Every time you create a new thread, you are lowering the probability of getting a helpful response.

    You might try posting the code you have written so far in an attempt to solve this problem. That will increase your chances of getting a helpful response.


    bitguru blog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: POSITIONING IMAGEICON
     
    Similar Threads
    humm imageIcon in an applet
    Display text over an icon in Jlabel
    Problems loading image into a JLabel located in a JScrollPane
    Display arrow button over label icon on focus
    How do I display an image on a JLabel