protected void saveChanges() {
for ( int i=0; i<table.getRowCount(); i++ ) {
User user = new User(
Integer.parseInt( model.getValueAt(i,0).toString() ),
(String) model.getValueAt( i, 1 ),
(String) model.getValueAt( i, 2 ),
model.getValueAt( i, 4 ).equals( "true")
);
user.setActive( model.getValueAt( i, 5 ).equals("1") );
try { user.update(db); }
catch ( final SQLException e ) {
log.error( e.getMessage() );
JOptionPane.showMessageDialog(
parent,