This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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).
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JEditorPane
 
Similar Threads
HTML Content in a JPanel
Creating a web browser with Java
Java Print Problem
Display problem in JFrame
How to clear contents of HTMLDocument in JEditorPane???