i dont know xactl wt u want but i undrstand the applet y cant run again &
again......
initialise 1 button( b ) only set caption as Run &
b.setActionCommand("Run");
in
public action prerformed(ActionEvent e)
{
JButton b1=new (JButton)e.getSource();
if(b.getActionCommand().quals("run");
{
// b1.(cod to run)
b1.setActionCommand("Cancel");
}
els
{
// b1.(cod to cancel) b1.setActionCommand("Run");
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---