title: difference from date from sql and current date using LocalDate returns 0 when setting text in a jTextField
body: <p>I'm trying to subtract date from sql database to current date. I tried the output in console and it works fine. The years between works properly. But when i tried to show the output in a text field it always return 0. Here is my code. </p>
  
  <pre><code>    public void checkDate() {
      DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
      String date1 = ((JTextField) 
      jDateChooser1.getDateEditor().getUiComponent()).getText();
      LocalDate birthdate = LocalDate.parse(date1, dtf);
      LocalDate ld = LocalDate.now();
      int rt = Period.between(birthdate, ld).normalized().getYears();
      System.out.println(rt);
      age.setText("" + rt);
      }
  </code></pre>
  
  <p>I create a event mouseClicked to jTextField age. It always return 0. Please help </p>