Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JEditorPane  RSS feed

 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you add a vertical scrollbar to a JEditorPane?
Thanks to all
Cardwell (the greenesthorn)
 
talasila srikanth
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JEditorPane pane=new JEditorPane();
JScrollPane scroll=new JScrollPane(pane);
scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

sri
 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help!
Cardwell (Getting greener all the time).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!