Java - JTable multiple instances
Posted
by
Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2012-04-14T17:25:51Z
Indexed on
2012/04/14
17:28 UTC
Read the original article
Hit count: 342
I have a JTable that gets data added to it from another JTable.
Now I want to switch between JTables according to the day selected in a JComboBox.
For example, if I choose Monday I add programs added to it then I select Tuesday from the JComboBox and a fresh JTable appears. If I go to Monday again the programs should still be there (until the program is closed).
How do I create multiple JTables (the JTable remains the same) for the days and let the info remain there until program closure?
Here is an example to show you what I mean:
© Stack Overflow or respective owner