aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Putting a LABEL on a big IMAGE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Putting a LABEL on a big IMAGE" Watch "Putting a LABEL on a big IMAGE" New topic
Author

Putting a LABEL on a big IMAGE

Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
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.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Putting a LABEL on a big IMAGE
 
Similar Threads
setting an image as a label for a button
DISPLAY an IMAGE
JTree-->TreeNode-->Blinking gif image
DISPLAYING several image
Decode base64 string to an image(pdf, png, ....)