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

c++ - list<myClass<int> * > sort -

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

java - why am i getting a "cannot resolve method" error on getApplication? -