Re: [jEdit-Syntax-users] More questions
Brought to you by:
marcel-boehme,
oliverhe
From: Tom B. <bra...@db...> - 2003-11-09 13:04:01
|
Make sure for each JEditTextArea component that you create, you create a separate SyntaxDocument instance and assign that instance to the Text Area using the setDocument() method. By default, the Text Area creates a single static instance of a SyntaxDocument and uses that if no other instance is explicitly defined. -- Tom Bradford - http://www.tbradford.org/ CTO - The dbXML Group - http://www.dbxml.com/ Project Labrador - http://www.dbxml.com/labrador On Nov 6, 2003, at 5:33 PM, P. J. Reed wrote: > First, I should say that I'm a student of Computer Science at Texas > Tech University. A research group here is doing a lot of work with > A-Prolog, so I'm working on an IDE for it as a senior project. > > I don't really want to make a plugin for jEdit -- one of the requests > is that it be as light-weight as possible, and jEdit really has a lot > of unneeded features. Furthermore, there are some features they do > want that jEdit doesn't seem to support, such as a tabbed interface. > > So, that's why I want to work with the jEdit Syntax package. I may > try to port the 4.2 syntax code to the 2.3 text area, but I will have > to decide if it's feasible.. I'm fairly new to programming in Java. > ;-) > > However, there is one problem I'm having that I can't figure out. Is > it possible to have more than one JEditTextArea at once? It seems as > though when I create more than one, they all share the same > properties, and changing one changes the others. For example, look at > this: > http://speed.sakabatou.net/Test.java > > It makes a small window with three tabs; two are JEditTextAreas, and > the third is a JTextArea. The behavior seems very strange to me; I > have a laptop with OS X 10.3 and Java 1.4.1, and another with Windows > XP and Java 1.4.2, and it behaves the same way on both. It doesn't > seem to have the same problem with other objects. > -- > P. J. Reed > "If you aren't voiding the warranty, you aren't even trying." > http://sakabatou.net/ > Hi! I'm a .sig virus! Copy me into yours and join in the fun! > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > jEdit-Syntax-users mailing list > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-syntax-users > |