title: how to search an element in a JTable java?
body: <p>I have made a JTable in java.
  I can do everything except search an element in my table.
  I want to work a input dialog so this is what I have at this moment:</p>
  
  <pre><code>btnSearch = new JButton("Search");
      btnSearch.addActionListener(new ActionListener() 
      {
          public void actionPerformed(ActionEvent e) 
          {    
              String name = JOptionPane.showInputDialog("Wat wil je zoeken?");
          }
      });
      add(btnSearch);
  </code></pre>
  
  <p>I thought to do it with a for loop.
  but I don't know how.
  Can someone help me pls?</p>