if (nickJTextField1.getText() != null) { setNickname(nickJTextField1.getText()); } if (nickJTextField1.getText() == null) { Random random = new Random(); setNickname("ajPlugin" + Integer.toString(random.nextInt(99999))); } connectButton.setEnabled(false); tabUpdate("Init Window", " Connecting to: " + host); connectStartRegister(); dialog.dispose(); }
                public void actionPerformed(ActionEvent ae) {                    whois();                }