Пример #1
0
 public void moveAttributeDown() {
   if ((getSelectedRow() > -1) && (getSelectedRow() < this.getRowCount() - 1)) {
     commitCellEdit();
     int remind = getSelectedRow();
     tableModel.moveAttributeUp(getSelectedRow() + 1);
     this.changeSelection(remind + 1, 0, false, false);
   }
 }
Пример #2
0
 public void moveAttributeUp() {
   if (getSelectedRow() > 0) {
     commitCellEdit();
     int remind = getSelectedRow();
     tableModel.moveAttributeUp(getSelectedRow());
     this.changeSelection(remind - 1, 0, false, false);
   }
 }