MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / trigger

Method trigger

src/org/opensourcephysics/display/OSPRuntime.java:2371–2376  ·  view source on GitHub ↗

Create a simple one-time Timer and start it. @param ms @param a @return

(int ms, ActionListener a)

Source from the content-addressed store, hash-verified

2369 * @return
2370 */
2371 public static Timer trigger(int ms, ActionListener a) {
2372 Timer timer = new Timer(ms, a);
2373 timer.setRepeats(false);
2374 timer.start();
2375 return timer;
2376 }
2377
2378 /**
2379 * Displays a JColorChooser and returns the selected color.

Callers 7

launchHtmlMethod · 0.95
setFontLevelMethod · 0.95
refreshFitMethod · 0.95
relaunchMethod · 0.95
cancelLoadingMethod · 0.95
doneMethod · 0.95
saveNewZipMethod · 0.95

Calls 1

startMethod · 0.45

Tested by 1

saveNewZipMethod · 0.76