title: Data not showing in JTable
body: <p>I am using a DAO Factory to get my Data from the database. When i am running my program the data is showing in the printline so he is getting it out of the database. But i want it to show in my JTable but this one is empty and i dont know how to fill it.</p>
  
  <p>Code JFrame:</p>
  
  <pre><code>package View;
  
  import java.awt.Container;
  import java.awt.Cursor;
  import java.awt.Dimension;
  import java.awt.GridLayout;
  import java.awt.event.ActionListener;
  import java.io.IOException;
  
  import javax.swing.JButton;
  import javax.swing.JFrame;
  import javax.swing.JLabel;
  import javax.swing.JList;
  import javax.swing.JPanel;
  import javax.swing.JScrollPane;
  import javax.swing.JTable;
  import javax.swing.JTextField;
  import javax.swing.ListSelectionModel;
  import javax.swing.WindowConstants;
  import javax.swing.table.TableModel;
  
  import Controller.VerwijderController;
  import Model.OefeningenListModel;
  import Model.OefeningenTableModel;
  
  public class VerwijderenHome extends JFrame {
  
      private JList LijstOefening;
      private JScrollPane jScrollPane1;
      private Container window = getContentPane();
      private JButton delete;
      private VerwijderController Controller;
      private JTable tabel;
  
      public VerwijderenHome()
      {
          initGUI();
      }
  
      public void addDeleteListener(ActionListener a){
          delete.addActionListener(a);
      }
  
      private void initGUI() {
          setPreferredSize(new Dimension(800, 600));
          setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
          setLayout(null);
          setVisible(true);
  
          JTable table = new JTable(new OefeningenTableModel());              
          JScrollPane scrollPane = new JScrollPane(table);  
          scrollPane.setBounds(50, 50, 300, 60);
          window.add(scrollPane);
  
          delete = new JButton("Delete");
          delete.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
          delete.setBounds(50, 265, 100, 30);
          window.add(delete);
  
          pack();
  
  
          Controller = new VerwijderController();
          addDeleteListener(Controller);
  
      }
  
      public JButton getDelete(){
          return delete;
      }
  
      public JList getLijst()
      {
          return LijstOefening;
  
  
  }
      }
  </code></pre>
  
  <p>Code DefaultTableModel?? (Dont know if i must use this one)</p>
  
  <pre><code>package Model;
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.ResultSet;
  import java.sql.ResultSetMetaData;
  import java.sql.Statement;
  import java.util.ArrayList;
  import java.util.Vector;
  
  import javax.swing.table.AbstractTableModel;
  import javax.swing.table.DefaultTableModel;
  
  import datapackage.DAOFactory;
  
  public class OefeningenTableModel extends DefaultTableModel {
  
        ArrayList&lt;Oefening&gt; oefeningen;
  
        public OefeningenTableModel(){
  
            oefeningen = DAOFactory.getFactory(0).getIDAOOefening().load();
  
        }
  
  
  
  
      }
  </code></pre>