wood burning stoves
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT


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
Ranch Hand

Joined: Sep 20, 2005
Posts: 878
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
    It's not a secret anymore!