Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POSITIONING IMAGEICON  RSS feed

 
Zaafir Barahim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 932
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!