Hello to all, I'm new here and I have just one quick question

I am trying to make a JButton display a JTable that will show an array.

I need to link the button to the table and make the table show the data contained in the array which is created on a separate file from the table.

I have absolutely no idea how to do this, please help!