Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed urgently

 
Stephen Batsas
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Stephen Batsas
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not use textPad or editplus (the sites are just that names). they are sharware.
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1820
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or jEdit, which is written in Java. You and your students can study the source code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic