Create a simple one-time Timer and start it. @param ms @param a @return
(int ms, ActionListener a)
| 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. |