JTexPane: Cross-platform chaos



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


.



Relevant Pages

  • Re: Silence befell Win2k Pro ...
    ... Windows", I get the file name displayed, and the test playing works. ... I had the file in a different directory, and the Sound applet showed ... Windows does know perfectly well how to play the file and just ...
    (microsoft.public.win2000.general)
  • Re: Sun - Too visionary?
    ... video screen (possibly opening new windows, ... applet) and turning down the stereo volume. ... Contrast that to the ActiveX model. ... sysadmin level and having the sysadmin COM+ being duped into doing ...
    (comp.lang.java.advocacy)
  • Re: Communication between applets in seperate browswer windows?
    ... >>several browser windows and then has to be notified whenever something ... > This is what i would try in Javascript - if Java code in applets don't allow ... > Say one applet is in a browser window, that can be referenced in javascript ... functions on Java applets from JavaScript in IE. ...
    (comp.lang.java.programmer)
  • Re: Internet explorer 6 service pack 1 problem
    ... Red X image displayed where the applet should be, ... Free Software - Java Software for the desktop ... Windows XP - Shell/User ... | Sometimes when I am browsing websites there seems to be a problem when downloading the images in internet ...
    (microsoft.public.windowsxp.general)
  • Automating IE: focus problem w/ multiple Windows
    ... subsequent calls should open new IE windows, but all running in the same ... In certain cases my applet must show a message dialog ... Now, if i use the taskbar to bring IE to front, the Applet hangs and IE must ... Browser* pOLE = new Browser; ...
    (microsoft.public.win32.programmer.ole)