File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Scrolling through a textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Scrolling through a textarea" Watch "Scrolling through a textarea" New topic
Author

Scrolling through a textarea

Martin vanPutten
Ranch Hand

Joined: Mar 26, 2006
Posts: 124
How do I make a scrollbar in my textarea?


Live And Let Learn.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632


as pane is a null layout, you may have to give the textArea a preferredSize
so that the scrollPane knows when to 'kick in' the scrollBars. Experiment,
see what happens.
Martin vanPutten
Ranch Hand

Joined: Mar 26, 2006
Posts: 124
I've played with the JScrollBar and Pane for a day now... and I must be missing something... what should it look like?
Martin vanPutten
Ranch Hand

Joined: Mar 26, 2006
Posts: 124
There we go... I figured it out!
 
 
subject: Scrolling through a textarea