public void actionPerformed(ActionEvent e) 
    {
        if (e.getSource() instanceof JMenuItem)
        {
            JOptionPane finalMess = new JOptionPane();
            String fina = finalMess.showInputDialog("Any final words, coward?");
            out.println("/disconnect "+fina);
        }
        else if (e.getSource() instanceof JTextField)
        {
            String outy = typedText.getText();
            out.println(outy);
            typedText.setText("");
            typedText.requestFocusInWindow();
        }
        //else if 
        
               
    }