Sunday, 16 February 2014

Ok....

Okay, well good news first:

I do know what I am doing and what I am supposed to do..

3 classes, one that extends JPanel; the other that extends and implements the Table stuff.

And so when I got to create the panel for the table, I should have the "new ClassNameForPanel()" inside the brackets along with the = new JPanel thing.

But for the table itself, I should go through the Panel then table because then I can send the array rather than have it being created - which would work for the "reusing" bit.

Adding Rows: To add rows, I think I'm going to do it in a JOptionPane asking each individual question when it pops up. 

Deleting Rows: I have to allow the user to select a certain row or something that they want to delete, and then have to go through the array and copy everything but that row, and then make the original array equal to the new one. 

No comments:

Post a Comment