Ejemplo n.º 1
0
 public DefaultTableModel getClearTableModel() {
   DefaultTableModel model = new DefaultTableModel();
   model.addColumn("Start");
   model.addColumn("End");
   model.addColumn("Type");
   return model;
 }
Ejemplo n.º 2
0
    public void updateActionTableFor(EditorClient client) {

      if (client == null) {
        DefaultTableModel model = new DefaultTableModel();
        tblActions.setModel(getClearTableModel());
        return;
      } else if (currClient == client) {
        DefaultTableModel model = getClearTableModel();

        Iterator i = client.getActions(self).iterator();
        while (i.hasNext()) {
          EditorAction ea = (EditorAction) i.next();
          model.addRow(ea.getTableRow());
        }
        tblActions.setModel(model);
      }
    }