private void showMessage(String typeMessage, String text, String title){
        if(typeMessage.equals("error")){
            JOptionPane.showMessageDialog(this, text, title,JOptionPane.ERROR_MESSAGE);
        }
        if(typeMessage.equals("info")){
            JOptionPane.showMessageDialog(this, text, title,JOptionPane.INFORMATION_MESSAGE);
        }
    }