views:

16

answers:

1
+1  Q: 

CL Editor in Java.

Trying to code a basic text editor to play around with Java's file objects and classes. What I cannot seem to figure out is how to go about developing something like the 'nano' interface. Or 'vim' interface, for that matter.

File creation is not a problem, its editing on the fly, and post-creation editing, that has just got me.

Any ideas?

Edits: Similar questions on Stackoverflow that I found interesting: 1 http://stackoverflow.com/questions/3169440/text-editor-theory

+1  A: 

User CHARVA

You can get the output like below.

Check out this link http://www.pitman.co.za/projects/charva/index.html

alt text

Muneer
That seems great Muneer! I wanted to do something small by my self though, any idea what logic/algo that code uses?
Angad
Programmers familiar with AWT and Swing will find programming CHARVA straightforward. User interfaces can be designed on a WYSIWYG IDE, and then easily converted to CHARVA merely by changing the "import" statements to import the "charva.awt and "charvax.swing" packages instead of the standard "java.awt" and "javax.swing" packages. ---pitman.co.za
Muneer
Charva is the best solution available so far. It saved me lot of work by doing apps nicely in Swing with a GUI Builder, than finally using IDE "migration scripts" to convert to the equivalent Charva classes.
A. Ionescu
ofcourse, charva is easier to use than the ncurse for c/c++
Muneer