JTexPane: Cross-platform chaos
- From: Wired Earp <wiredearp@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 28 Aug 2005 11:56:24 GMT
I've extended a JTextPane to preserve tabindex and implement block-
indentation. It is supposed to work much like a code editor. Check out the
resulting applet, rigged up for Firefox only, over at:
<url:http://www.wunderbyte.com/editorapplet>
I realize you may not have multuple operating systems running
simultaniously, so you have to trust me on this: It works perfectly on
Linux but fails on Windows. Things get calculated weirdly and unpredictably
and I have absolutely no idea where to start looking:
- does Java on Windows not use '\n' and '\t' characters?
- is it a bug in the JtextPane implementation on Windows?
- is my thinking not straight?
I've spent a lot of time learning Java so that I could build this applet,
and I have loads of dependant application code prepared already, so I would
*really* appreciate it if you could look it over and maybe come up with a
hint. Here's the source code in txt-format:
<url:http://www.wunderbyte.com/editorapplet/EditorTextPane.txt>
--
Wired Earp
Wunderbyte
.
- Follow-Ups:
- Re: JTexPane: Cross-platform chaos
- From: Christian Kaufhold
- Re: JTexPane: Cross-platform chaos
- From: Andrew Thompson
- Re: JTexPane: Cross-platform chaos
- From: Mark Thornton
- Re: JTexPane: Cross-platform chaos
- Prev by Date: Different height at JComboBox editor and renderer
- Next by Date: Re: JTexPane: Cross-platform chaos
- Previous by thread: Different height at JComboBox editor and renderer
- Next by thread: Re: JTexPane: Cross-platform chaos
- Index(es):
Relevant Pages
|
|