This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea on JScrollPane" Watch "JTextArea on JScrollPane" New topic
Author

JTextArea on JScrollPane

Sanam Chandrasekaran
Greenhorn

Joined: May 05, 2004
Posts: 17
Hello,

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.

Regards
Sanam
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)

http://forum.java.sun.com/thread.jsp?forum=57&thread=567904
Sanam Chandrasekaran
Greenhorn

Joined: May 05, 2004
Posts: 17
Hello,
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

Thanks
Sanam
 
It is sorta covered in the JavaRanch Style Guide.
 
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