S
S
I have no clue about threads, but imagine it would be a good thing to
use in the following scenario:
I have a JApplet which makes a SWT-GUI, a class that extends JComponent
(for drawing a figure on a JCompoent inside the SWT-GUI) and a
Calculation.class that does all the calculations.
When a button is pushed I want to:
1. Calculate the right data via the Calculate.class
2. _Wait untill all the calculations are saved and updated
3. Paint the new JComponent from the JComponentMy.class with the NEW
values from Calculate.class
I have tried to find some tutorials about Threads, and how to implement
them, but have not succeeded. Is there an easy way to wait untill a
call is finished before continuing?
Thanks in advantage
use in the following scenario:
I have a JApplet which makes a SWT-GUI, a class that extends JComponent
(for drawing a figure on a JCompoent inside the SWT-GUI) and a
Calculation.class that does all the calculations.
When a button is pushed I want to:
1. Calculate the right data via the Calculate.class
2. _Wait untill all the calculations are saved and updated
3. Paint the new JComponent from the JComponentMy.class with the NEW
values from Calculate.class
I have tried to find some tutorials about Threads, and how to implement
them, but have not succeeded. Is there an easy way to wait untill a
call is finished before continuing?
Thanks in advantage