• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scrolling direction of JScrollPane

 
chiru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
how to set the direction of autoscrolling of JScrollPane which contains the jTextArea
 
Campbell Ritchie
Marshal
Posts: 52519
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your displayed name against the Javaranch naming policy, which requires a first name and a last name separated by a space.
 
Tim Quinn
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chiru:
hi
how to set the direction of autoscrolling of JScrollPane which contains the jTextArea


Look at the JScrollPane API (first hit on google for "JScrollPane"). Check out the setHorizontalScrollBarPolicy and setVerticalScrollBarPolicy methods.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!