File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Textbook on image" Watch "Textbook on image" New topic

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

Joined: Oct 27, 2005
Posts: 19911

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.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Textbook on image