• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Putting a LABEL on a big IMAGE

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please i want to know how to put a label in which text are written and this label must be embeded on an image. I have successfully embed an image on a big image using "g.drawImage(image, X_coordinate, Y_coordinate, this)". Please HELP ME OUT, i need it URGENTLY. Thanks in advance for any kind of HELP.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> Please i want to know how to put a label in which text are written and this
> label must be embeded on an image.

on the swing forum's main page there's a link to the Swing FAQ, which has an
example of a JPanel with a background image. Add your JLabel to that panel and
you should get what you want. Where you want the JLabel positioned will
determine which layoutManager you set for the JPanel
 
reply
    Bookmark Topic Watch Topic
  • New Topic