private void editCurrent() {
   GenericEditor editor = tableModel.getEditor();
   editor.edit(tableModel.getRowData(objectTable.getSelectedRow()));
   MainFrame w = (MainFrame) this.getTopLevelAncestor();
   w.addToDesktop(editor);
   editor.show();
 }
 void addButton_actionPerformed(ActionEvent e) {
   GenericEditor editor = tableModel.getEditor();
   editor.editNew();
   MainFrame w = (MainFrame) this.getTopLevelAncestor();
   w.addToDesktop(editor);
   editor.show();
 }
 private void printCurrent() {
   if (tableModel instanceof TransportTableModel) {
     Transport o = (Transport) tableModel.getRowData(objectTable.getSelectedRow());
     String filename = TransportHelper.createHTMLFileFromTransport(o);
     try {
       Runtime runtime = Runtime.getRuntime();
       runtime.exec("explorer " + filename);
     } catch (IOException ioe) {
       System.out.println(ioe);
     }
   }
 }
 private void removeCurrent() {
   LogicItem l = (LogicItem) tableModel.getRowData(objectTable.getSelectedRow());
   tableModel.remove(objectTable.getSelectedRow());
   MainFrame mf = (MainFrame) this.getTopLevelAncestor();
   mf.refreshLists(l, transport.client.tablemodel.GenericTableModel.REFRESH_DELETE);
 }
 /**
  * refresh
  *
  * @param o Object
  */
 public void refresh(LogicItem o, int refreshType) {
   tableModel.refresh(o, refreshType);
 }
 void refreshButton_actionPerformed(ActionEvent e) {
   tableModel.refresh();
 }