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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---