private boolean passwordAcceptable()
    {
        char[] pass1, pass2;
        try
        {
            pass1 = passField.getPassword();
            pass2 = repassField.getPassword();
        }
        catch (NullPointerException ex)
        {
            badPassLabel.setText("Password must have at least one character");
            badPassLabel.setForeground(Color.red);
//            JOptionPane.showMessageDialog(rootPane, 
//                    "Password must have at least one character", 
//                    "Error", JOptionPane.ERROR_MESSAGE);
            return false;
        }
        if(pass1.length != pass2.length)
        {
            badPassLabel.setText("Both passwords fields must match");
            badPassLabel.setForeground(Color.red);
            return false;
        }
        int length = pass1.length;
        if(length < 1)
        {
            badPassLabel.setText("Password must have at least one character");
            badPassLabel.setForeground(Color.red);
//            JOptionPane.showMessageDialog(null, 
//                    "Password must have at least one character", 
//                    "Error", JOptionPane.ERROR_MESSAGE);
            return false;
        }
        for(int i = 0; i < length; i++)
        {
            if(pass1[i] != pass2[i])
            {
                badPassLabel.setText("Both passwords fields must match");
                badPassLabel.setForeground(Color.red);
                return false;
            }
        }
        password = new String(pass1);
        for(int i = 0; i < length; i++)
        {
            pass1[i] = 0;
            pass2[i] = 0;
        }
        return true;
    }