All pastes #736678 Raw Edit

Unnamed

public java v1 · immutable
·published 2007-10-14 19:03 UTC
rendered paste body
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                                 showHelloThereDialog();    }                                                    public void showHelloThereDialog() throws Exception {        Runnable showModalDialog = new Runnable() {            public void run() {                try {                    wait(500);                } catch (InterruptedException e) {                    e.printStackTrace();                }            }        };        SwingUtilities.invokeAndWait(showModalDialog);    }