1

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

mKorbel
  • 109,525
  • 20
  • 134
  • 319
user1020024
  • 41
  • 1
  • 7

1 Answers1

2

Start with How to Use Tables. This related example shows one approach to altering the table's data model using buttons.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045