You can try digging through the source code for the JEdit open-source 
editor (www.jedit.org).  They do this.

Look for stuff relating to the "gutter".  That's the name they use for the 
column on the left side of the editor.


HTH.

DR


At 10:32 PM 7/1/2002 +0000, you wrote:
>I'm trying to implement visible line numbers in a code editor. I don't 
>want the numbers to be part of the code. So, my first approach is to 
>create a JTextArea to the left of the main editor area that will listen to 
>the text length changes and display the appropriate sequence of line 
>numbers. If someone has done something similar or has any ideas to give 
>me, I would appreciate it.
>
>Panos



To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to