title: Display MS access data in Jtable netbeans
body: <p>I am trying to display my db in a jtable on netbeans but my form just opens up blank. </p>
  
  <p>heres the code i used, also does not findConnectDB </p>
  
  <pre><code>public class BuyingScreen extends javax.swing.JFrame {
  
  Connection conn = null;
  ResultSet rs = null;
  PreparedStatement pst = null;
  
  
  
  FlyKitemain fk = new FlyKitemain();
  
  private void UpdateJTable(){
      String sql = "Select * From tblKites";
  
      try{
          pst = conn.prepareStatement(sql);
          rs = pst.executeQuery();
          BuyingTable.setModel(DbUtils.resultSetToTableModel(rs));
  }
  
        catch (SQLException ex)
      {
          Logger.getLogger(BuyingScreen.class.getName()).log(Level.SEVERE, null, ex);
      }
  
  }
  
  
  private void formWindowOpened(java.awt.event.WindowEvent evt){
  
      conn = FlyKitemain.ConnectDB();
      UpdateJTable();
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/iCgs7.png" alt="my form design"></p>