ad.show();
ad.setVisible(true);
    public void actionPerformed(ActionEvent actionEvent) {        if (actionEvent.getSource() == butOk) {            String s = fldSetting.getText();                try {                if (s != null && s.length() != 0) {                        setting = Integer.parseInt(s);                }            } catch (NumberFormatException e) {                AlertDialog ad = new AlertDialog(frame,                                                Messages.getString("VibrabombSettingDialog.alert.Title"), //$NON-NLS-1$                                                Messages.getString("VibrabombSettingDialog.alert.Message")); //$NON-NLS-1$                ad.show();                return;            }                        if ((setting < 20) || (setting > 100)) {                AlertDialog ad = new AlertDialog(frame,                                                Messages.getString("VibrabombSettingDialog.alert.Title"), //$NON-NLS-1$                                                Messages.getString("VibrabombSettingDialog.alert.Message")); //$NON-NLS-1$                ad.show();                return;            }        }        this.setVisible(false);    }