Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scrolling through a textarea

 
Martin vanPutten
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I make a scrollbar in my textarea?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There we go... I figured it out!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic