This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane" Watch "JEditorPane" New topic
Author

JEditorPane

cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
How do you add a vertical scrollbar to a JEditorPane?
Thanks to all
Cardwell (the greenesthorn)
talasila srikanth
Greenhorn

Joined: Aug 29, 2001
Posts: 1
JEditorPane pane=new JEditorPane();
JScrollPane scroll=new JScrollPane(pane);
scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

sri
cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Thanks for your help!
Cardwell (Getting greener all the time).
 
Have you checked out Aspose?
 
subject: JEditorPane
 
It's not a secret anymore!