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

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -