hi all,
i am new to this forum, so at first i just want so say hello to all :-)
i have a little project implementing some own grammar language
for some german linguists and want to have a nice little IDE
to edit those grammars ...
so i startet to create some basic IDE features with swing
an netbeans.
i used the code here and found, which seems very helpful for me,
but i also noticed some problems ...
1. display of linenumbers
in some circumstances the scrolling of the editor component and the
line header in scoll bar are not synchronized.
which means scrolling posion is not the same and the displayed lineno
does not represent the actual one ...
i currently not know how to sync theese components ... :-(
2. jtextpane and linewrap
for syntaxhighlighing functions i need jtextpane insted of
jtextarea.
out of the box you can't easly turnoff linewrapping in jtextpane.
if you use a little trick and enclose the jtextpane in a pane which
layout is set to 'border' you can simulate no line wrap.
the problem is, if you type out of the viewport you cant see the edit-
cursor, which is out of the viewport ...
maybe this also have to be synced somehow with scrolling ...
maybe anybody has a great idea or some useful experience on this :-)
thank you in andvance
regards
patrick