if ( cmd == null ) {
return;
}
int row = exitsTable.rowAtPoint( e.getPoint() );
int col = exitsTable.columnAtPoint( e.getPoint() );
Room r = (Room) exitsTable.getModel().getValueAt( row,
col );
cmdTextField.setText( cmdTextField.getText() + r.getName() + " " );
cmd.add( r );
}
} );
JScrollPane exitsPanel = new JScrollPane( exitsTable );