25262728293031323334
while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } tray.dispose(); agent.stop(); display.dispose(); System.exit(0); } }
2122232425262728
try { Thread.sleep(3500); } catch (InterruptedException e) { } agent.stop(); } }