[jEdit-Syntax-devel] [Fwd: Jedit Syntax.]
Brought to you by:
marcel-boehme,
oliverhe
From: Tom B. <bra...@db...> - 2001-08-26 22:46:23
|
Mark Brady wrote: > > Hello, > Thank you for taking over the jedit-syntax package as I also think it is very well written and useful software. However there are two issues I have discovered while using it that you might be interested in. I am using the syntax package from Jython (Python on the JVM - www.jython.org) but I don't think this is the problem as swing and Java work perfectly well with Jython. > > 1) The static code block in JEditTextArea.java works fine on win 9X and win NT but causes the application to exit straight away on win 2000. I moved the static code into the constructor and that (seemed) to fix the problem. I am aware that this is a dirty hack but it does seem to fix this problem. This seems to be a threading problem and might just be a Jython only problem but as it works fine on all platforms except win2000 I suspect it's due to a difference in the OS threading. Here is the static code block: > static > { > caretTimer = new Timer(500,new CaretBlinker()); > caretTimer.setInitialDelay(500); > caretTimer.start(); > } > > 2) The second problem is that when I add a JEditTextArea to a JInternalFrame the scrolling breaks. Scrollbars appear but do not seem to be connected to the actual text. Using the scrollbars does not move the text in the text area. If you use the return, space or arrow keys inside the text area, while the text area responds as expected the scrollbars do not move to reflect the new position of the cursor in the text. I did not get this problem when I used JEditTextArea on a JTabbedPane. I do not think this is a Jython specific problem but I have not had a chance to test it with Java code yet. > > The first problem doesn't bother me as I seemed to have found a (messy) fix for it but the second problem is currently driving me crazy :-) Any help or suggestions would be great. If I discover a solution I will forward it to you. Anyway thanks for your time and good luck with jedit-syntax, > > Mark Brady. > > Get 250 color business cards for FREE! > http://businesscards.lycos.com/vp/fastpath/ -- Tom Bradford --- The dbXML Project --- http://www.dbxml.org/ We store your XML data a hell of a lot better than /dev/null |