public GameHistoryTable(GameHistoryTableModel m)
{
//Set up the table here.
table = new JTable(m);
table.setPreferredScrollableViewportSize(new Dimension(800,120));
}
as constructor for JTable. Here, I included all of the GameHistoryTable(), so that you can see me giving the AbstractTableModel as parameter.
This post has been edited by IceHot: 31 January 2013 - 02:57 AM

New Topic/Question
Reply



MultiQuote




|