Drop_of_Rain
asked on
call a class from action performed
Simple question. I am new at this and want to learn this part. I know how to call am a inner class I made it outter now. I want to know that when I press a button in a action performed Event what code do i need to add to call it up, it has its own window. It name is StopWatch()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In the same class you can add Timers to have the same access to public void actionPerformed(ActionEven t a)
{
Object o = a.getSource();
if(o == b) // it's the button
And so on ....
;JOOP!
{
Object o = a.getSource();
if(o == b) // it's the button
And so on ....
;JOOP!
OK.
ASKER
I'm posting another question can you look for it, it comes up from the comment you made in the question.
it's about implements runable and actionListener maybe rewting the class
it's about implements runable and actionListener maybe rewting the class
;JOOP!