Пример #1
0
 private void startEditingAtSelection() {
   myTable.editCellAt(myTable.getSelectedRow(), 2);
   SwingUtilities.invokeLater(
       new Runnable() {
         public void run() {
           if (myTable.isEditing()) {
             myTable.getEditorComponent().requestFocus();
           }
         }
       });
 }
 @Nullable
 private ClasspathTableItem<?> getSelectedItem() {
   if (myEntryTable.getSelectedRowCount() != 1) return null;
   return getItemAt(myEntryTable.getSelectedRow());
 }
Пример #3
0
 @Override
 @Nullable
 public OrderEntry getSelectedEntry() {
   if (myEntryTable.getSelectedRowCount() != 1) return null;
   return myModel.getItemAt(myEntryTable.getSelectedRow()).getEntry();
 }
 public int getSelectedElementRow() {
   return myTable.getSelectedRow();
 }