title: Return the Value of Date from JDateChooser
body: <p>So I have made a GUI application where I have 3 TextFields and 1 JDateChooser. During runtime I want to check whether or not the user has typed anything into the Components. If they haven't typed anything I want to show an error message.</p>
  
  <p>The Code I've tried :-</p>
  
  <pre><code>if (!cardnumb1.equals("") || !pin1.equals("") || !call1.equals("") || !fname1.equals(""))
          {
              verify1.setVisible(true);
          }
  
          if (cardnumb2.equals("") || pin2.equals("") || cal12.equals("") || fname2.equals(""))
          {
              JOptionPane.showMessageDialog(this,"error");
          }
  </code></pre>
  
  <p>Where cardnumb1,pin1,fname1 are textFields and call1 is JDateChooser</p>
  
  <p>The  <code>cal12.equals("")</code> throws a <code>.equals() on incomparable String types</code></p>
  
  <p>My declaration of Datatype for call1 is </p>
  
  <pre><code>Date call1 = date1.getDate();
  </code></pre>