@Override
    public void focusLost(FocusEvent e) {
        if(e.getSource() == frame.name && frame.name.getText().equals("")) frame.name.setText("Логин");
        else if(e.getSource() == frame.password && new String(frame.password.getPassword()).equals("")) frame.password.setText("Пароль");
        else if(e.getSource() == frame.answer && frame.answer.getText().equals("")) frame.answer.setText("Ваш ответ..");
    }