swing - Override the Java DefaultStyledDocument implementation -
i'm student. when learn gof , want create word processor mentioned in chapter2. choose use java swing, want extend defaultstyleddocument , override insertupdate , related methods in order implement , manage own element tree, can practice composite , flyweight pattern. problem when override insertupdate method, insert newline has no effect. when inserting newline, element tree create new paragraph(brachelement), cursor don't move next line, swing don't show , following characters in same line.
can me, thanks.
try understand how structure changes http://java-sl.com/jeditorpanestructuretool.html
and http://java-sl.com/jeditorpanetables.html see how change structures
Comments
Post a Comment