JFrame <-> Thread communication

i'm new toswing. sorry for basic question:

i openJFrame and start aThread and i need this

thread to communicate with theJFrame (like writing

text into aJTextPanes in theJFrame) as well as other

stuff.

publicstaticvoid main(){

...

JFrame jf =new MyJFrame();

jf.setVisible(true);

Thread t =new MyThread();

// ..................... here?

t.start();

}

of course, i need to be using interfaces in the method signatures.

thanks.

[854 byte] By [suppona] at [2007-11-27 8:29:39]
# 1
Threads and Swing: http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html
camickra at 2007-7-12 20:19:59 > top of Java-index,Desktop,Core GUI APIs...
# 2
sweet. exactly what i need.now. i'm a little worried about the best practicesfor how to communicate amongst multiple threads withmultiple JFrames.if anyone has a favorite tutorial, please let me know.
suppona at 2007-7-12 20:19:59 > top of Java-index,Desktop,Core GUI APIs...