g****y 发帖数: 323 | 1 This FrameWork will be used if you have
1.your own GUI updated part, not calling repaint().
2.Tough work, like lots of calculations
3.You want to be able to stop the thread.
Thread workHarder = new Thread() {
public void run() {
doTougherWork();
SwingUtilities.invokeLater( new Runnable () {
public void run() {
updateMyComponents(); // update the state of
component(s)
}
});
}
};
workHarder.start();
public void doT |
|