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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Textbook on image" Watch "Textbook on image" New topic
Author

Textbook on image

Len Padson
Ranch Hand

Joined: Nov 21, 2011
Posts: 40
I want to make a program with a full screen image with a text box ON TOP OF the image. I know how to do the full screen, and i know how to insert the image, but is there a way to add a JTextBox on top of the image, at a fixed position (where I specify the coordinates)???
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

Don't add a JLabel with an ImageIcon, but instead use something like Rob Camick's background panel. This allows you to add the JTextBox (you probably mean JTextArea) to that panel the usual way.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: Textbook on image
 
Similar Threads
Scroll images
MIDP1: runtime resizing images: it's possible?
An HTML page
Applet Size
view image in full screen