import java.awt.event.ActionEvent; import org.netbeans.modules.debugger.support.actions.StepOverAction; import org.openide.util.actions.SystemAction; /** * * @author Jan Lahoda */ public class Stepper { /** Creates a new instance of Stepper */ public Stepper() { } /** * @param args the command line arguments */ public static void main(String[] args) { StepOverAction action = (StepOverAction) SystemAction.get(StepOverAction.class); for (int cntr = 0; cntr < 5000; cntr++) { while (!action.isEnabled()) Thread.currentThread().yield(); action.performAction(); } } }