title: How to remove text without clicking button
body: <pre><code> private void jngtAlSiurblioIjungimasMouseClicked(java.awt.event.MouseEvent evt) {                                                     
  
      if (jngtAlSiurblioIjungimas.isSelected()) {
          AlSiurbIjungDisplay.setText("At first i would like to print this");
          try {
              Thread.sleep(3000);
          } catch (Exception r) {// after 3000 mls i would like that all text was be deleted automaticly
          }
       AlSiurbIjungDisplay.setText("");
          }
  </code></pre>
  
  <p>//I am using Netbeans 8.1.My task is when i start,at first that was printing first:  </p>
  
  <pre><code>AlSiurbIjungDisplay.setText("At first i would like to print this");
  </code></pre>
  
  <p>,and after <code>300 ml</code> what was printing at panel was be remove,or deleted,my problem is when i starting not printing </p>
  
  <pre><code>AlSiurbIjungDisplay.setText("At first i would like to print this");
  </code></pre>
  
  <p>Why,please help me</p>