File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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).
 
jQuery in Action, 2nd edition
 
subject: JEditorPane
 
Similar Threads
Display problem in JFrame
How to clear contents of HTMLDocument in JEditorPane???
HTML Content in a JPanel
Java Print Problem
Creating a web browser with Java