swing - Character by character reading the input from JEditorPane in Java -


i trying create html editor. using jeditorpane, in want read input jeditorpane character character , want them stored in string. example: if user types <h want read 2 characters , according characters suggest users tags, in case <html>,<header>,<head> etc (i.e. tags starting 'h'). not getting how , function use read character jeditorpane user inputs jeditorpane.

so not getting how , function use read character jeditorpane user inputs jeditorpane.

you can use documentlistener read section swing tutorial on how write documentlistener more information , examples.

if creating editor, displays text, not actual formatting, should use jtextarea or jtextpane. jeditorpane displaying existing html files.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -