Use of Start button's action
hi guys i'm a newbie in java and i have a question.
i have 3 class but i used threads in 2 of them.In one class i used run function and in the another one's main used start function.I also used paint and paintComponent function in the class which i used start function. ( i have a user interface in this class )
in paint function i draw a few rectangles and paintCompenent function i added a few rectangles.
what i want is when i clicked the start button : run,start and paintCompenent functions start.
i am waiting your answers, thanks...