Question: how rows are inserted in table in java?
Answer: To create the table with this model: JTable table = new JTable(new DefaultTableModel(new Object[]{"Column1", "Column2"})); To add a row: DefaultTableModel model = (DefaultTableModel) table.