multithreading - need suggestions for java code editor using swing -


i planning program java code editor using swing , main feature highlighting code segments keywords , strings , variables. need suggestions on how should implement program, 1 of friend told use 2 separate threads, 1 editing , 1 highlighting code, how establish communication between 2 threads ?

if don't use separate threads, have impact on program ?

i'm confused. please me, suggestions .

edit: 1 more question should use jeditorpane or jtextpane purpose ?

from docs

swing object methods not "thread safe": invoking them multiple threads risks thread interference or memory consistency errors.

http://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -