This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 20136
    
  30

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 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Textbook on image
 
jQuery in Action, 3rd edition