| Author |
help needed urgently
|
Stephen Batsas
Ranch Hand
Joined: Jan 22, 2002
Posts: 117
|
|
Dear Ranchers, I want to create a simple text editor to build .java source files with the normal compiler feature of formatting keywords to change colour as they are entered. Please tell me which class is the best to use to do this. eg JEditPane Regards, Stephen Batsas SCPJ2
|
 |
Chris Stehno
Ranch Hand
Joined: Feb 26, 2001
Posts: 180
|
|
Sounds like reinventing the wheel ... to each his own: JEditPane is probably your best bet, though you may want to download and look into the source code for something like Jext, JEdit or NetBeans to see how they do it. I am assuming that you are doing this for some project ... but if you are only trying to get an editor that does that, there are many to choose from (email me if you want a list). Hope this helps
|
- Chris Stehno, SCPJ
|
 |
Rob Ross
Bartender
Joined: Jan 07, 2002
Posts: 2205
|
|
Stephen, I don't want to discourage you from experimenting, but really, what was so URGENT about your question? Even if you are really gung-ho about writing a text editor from scratch, it could take you weeks to write it, so waiting a day or two for a response doesn't seem all that critical. So again, why the URGENCY? Please respond to my question IMMEDIATELY! :roll: [ February 25, 2002: Message edited by: Rob Ross ]
|
Rob
SCJP 1.4
|
 |
Stephen Batsas
Ranch Hand
Joined: Jan 22, 2002
Posts: 117
|
|
Rob, Im teaching part time - the college wont allow me to load any Editors that require licensing - no funding - so my students have to contend with Notepad or DOS Editor. Regards, Stephen Batsas SCJP2
|
 |
Stephen Batsas
Ranch Hand
Joined: Jan 22, 2002
Posts: 117
|
|
Chris, Refer to my recent posting - Building an editor. I have listed several options to contend with the highlighting/color of keywords. Read it and advise if you can. Regards, Stephen Batsas SCPJ2
|
 |
Roy Ben Ami
Ranch Hand
Joined: Jan 13, 2002
Posts: 732
|
|
|
why not use textPad or editplus (the sites are just that names). they are sharware.
|
 |
Michael Matola
whippersnapper
Ranch Hand
Joined: Mar 25, 2001
Posts: 1721
|
|
|
Or jEdit, which is written in Java. You and your students can study the source code.
|
 |
 |
|
|
subject: help needed urgently
|
|
|