This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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

I agree. Here's the link:
subject: JTextArea on JScrollPane
jQuery in Action, 3rd edition