I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells me to use JTextArea, I can't use that because I'm creating an IDE with syntax highlighting. Any help?
I've tried putting the editor in a JPanel with FlowLayout, but I didn't get the desired results.