Part C: should show new frame GraphDemo graphFrame = new GraphDemo(controlPane,"DisplayGraph"); graphFrame.showFrame(); graphDemo.dispose();
As the "GraphDemo.getContentPane().repaint()" starts new thread. Part C is not waiting for Part B to be completed. so it is not showing the initializing on Panel.
Solution i am looking for is:- aftet the repaint() method is complete then i wanted the Part c to be processed. Is there anyway i can do this.... I heard that there are some methods like invokewait and invokelater() in the swing utilities. I dont know how to use them.
If anyone helps me, i would be grateful... as the deadlines are very tight.
posted 11 years ago
put it in a thread in invokeLater():
[ June 08, 2004: Message edited by: Bj�rn B�rresen ]