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 Spring in Action this week in the Spring 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: 19718
    
  20

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
 
 
subject: Textbook on image