Using the new IdentityTable class is even easier than using the original JTabel. The PersonnelTableModel extends the IdentityTableModel we defined earlier.
1 package com.vizitsolutions.demo; 2 3 import java.awt.BorderLayout; 4 import com.vizitsolutions.identitytable.IdentityTable1; 5 import javax.swing.JApplet; 6 7 /** 8 * Applet showing a table with a rowheader as implemented by the IdentityTable. 9 * 10 * @author akluge 11 */ 12 public class Example2 extends JApplet 13 { 14 IdentityTable1 personnelTable; 15 PersonnelIdentityTableModel personnelTableModel; 16 17 public void init() 18 { 19 personnelTableModel = new PersonnelIdentityTableModel(); 20 personnelTable = new IdentityTable1(personnelTableModel); 21 } 22 23 public void start() 24 { 25 add(personnelTable, BorderLayout.CENTER); 26 } 27 } 28 29