public void run() { while (!isInterrupted()) { } } public void showWarning() { this.interrupt(); }