This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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