• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

POSITIONING IMAGEICON

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
     
    You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
    Smokeless wood heat with a rocket mass heater
    https://woodheat.net
    reply
      Bookmark Topic Watch Topic
    • New Topic