This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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

I agree. Here's the link:
subject: JTextArea on JScrollPane
Similar Threads
automatic scrolling of JTextField
Scroll pane problem
Weird chars at end of line in JTextArea
Need Help resizing my JScrollPane
problem with spacing of text in JTextArea