Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Designing a Text Editor  RSS feed

 
Amoo Firooz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on this project where I have to design a text editor in java for my school project. Does anyone here know where should I start from and what are the basics of an Editor?
Thanx in advance
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pick your favorite text editor(s) and implement the features you like. What do you mean "where do I start?". Start programming. You might want to ask more specific questions.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ham,
You can find many examples -- of how to build text editors using java -- on the Internet. Here's one document I found:

http://www.martin-burkhart.de/stuff/FED/dissertation_martinburkhart.pdf

Also, if I remember correctly, one of Kim Topely's books on Swing describes how to build a text editor using java.

Good Luck,
Avi.
 
Amoo Firooz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Avi. Though I did go to the Burkhart's website, I didn't find much about the implementation of that. But I was able to put pieces together from Sun's Java tutorial and still working on it.

Ham
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, what's your approach ... using a Swing text area to do the bulk of the work or managing your own low level stuff like rows & columns, cursor movement, scrolling, highlighting and such? I've done the latter in the distant past (Turbo Pascal) and it was great fun to build commands to flow paragraphs or execute change commands.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!