Horizontally Scrollable JTextPane's
Posted on 2005-03-24
I'm setting up a JTextPane and JScrollPane to work together, and vertical scrolling works fine when newline-feeds exceed the viewport size.
I really want the JTextPane's size (rather, width) to be fixed so that areas of the text-pane falling outside of the view port are written to via the insertString() method. Instead, the JTextPane's width alters to fit the viewport when the frame is displayed; eliminating horizontal scrolling.
Any help on this is appreciated,