Re: JScrollPane + JTextPane trouble.

2009-01-19 Thread Christian Vest Hansen
Excellent! The getScrollableTracksViewportWidth() trick did it :) On Mon, Jan 19, 2009 at 3:26 PM, MikeM wrote: > > This might be helpful: > > http://os-lists.sun.com/thread.jspa?messageID=457986 > > > -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~-~--~~

Re: JScrollPane + JTextPane trouble.

2009-01-19 Thread MikeM
This might be helpful: http://os-lists.sun.com/thread.jspa?messageID=457986 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscrib

JScrollPane + JTextPane trouble.

2009-01-18 Thread Christian Vest Hansen
Hi! Now, I know this is more related to Swing than Clojure, but they won't be able to read my code in a general Java forum. I have a JTextPane [1] inside a JScrollPane [2] and I would like to have horizontal scrollbars rather than word-wrapping. I try to disable word-wrapping by overriding the J