I am trying to create a JTable that when a user presses a button on the GUI it sets the values inside the if statement to that JTable. Being quite new to java I am most likely going about this wrong. I have done some research and I believe that using DefaultTableModel would be the best.
I understand how to implement the Jtable with a set of preset values but I am struggling to understand how to set the values with a JButton.
Thanks
Start with How to Use Tables. This related example shows one approach to altering the table's data model using buttons.