Markus said:
I want to show linenumbers left of my JTextArea but I have no (good)
idea how to implement it. :-/
Has anybody a (simple) solution for this "problem"?
kind regards
Markus
Guess you cold just prefix a line, ala a loop, concat the prefix and
text line into the TextArea with insert(concat(loopIndex+" "+text,
loopIndex).
You may want to do some formatting on the index before the concat.
Or with out a look..
int lineNum = getRows();
insert(concat((lineNum+1)+" "+text, lineNum+1);
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)