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 JTextArea on JScrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea on JScrollPane" Watch "JTextArea on JScrollPane" New topic

JTextArea on JScrollPane

Sanam Chandrasekaran

Joined: May 05, 2004
Posts: 17

I have a BufferImage displayed on a JScrollPane
and i want a JTextArea with vertical n horizontal scroll bars,

can we place a scrollpane on another existing scrollpane.

i.e i want a JTextArea with scrollbars to be placed on the image which is already displayed in scrollpane.

Could anone please help me with this.

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this post might answer this and your next 6 questions
(if I'm guessing correctly what you're trying to do)
Sanam Chandrasekaran

Joined: May 05, 2004
Posts: 17
Thanks a lot for ur reply,
I am basically developing an image viewer,
in which a image can be viewed, Zoomed in n out,
magnifier, mask(should be able to modify the image),
shoud be able to insert text on the image, etc,

If u have more idea n information, it would be kindful
if u could share

jQuery in Action, 3rd edition
subject: JTextArea on JScrollPane
It's not a secret anymore!