javax.swing.JTable.removeEditor()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(190)

本文整理了Java中javax.swing.JTable.removeEditor()方法的一些代码示例,展示了JTable.removeEditor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.removeEditor()方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:removeEditor

JTable.removeEditor介绍

暂无

代码示例

代码示例来源:origin: openstreetmap/osmembrane

@Override
public void windowClosing(WindowEvent e) {
  // close the annoying JTable editor when we're leaving
  editList.removeEditor();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public void actionPerformed(java.awt.event.ActionEvent e) {
  JTable table = (JTable)e.getSource();
  table.removeEditor();
}
public boolean isEnabled() {

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public void actionPerformed(java.awt.event.ActionEvent e) {
  JTable table = (JTable)e.getSource();
  table.removeEditor();
}
public boolean isEnabled() {

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

public void actionPerformed(ActionEvent e)
  {
    JTable table=(JTable)e.getSource();
    table.removeEditor();
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

public void actionPerformed(java.awt.event.ActionEvent e) {
  JTable table = (JTable) e.getSource();
  table.removeEditor();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public void removeEditor() {
  inRemoveRequest = true;
  try {
    synchronized (getTreeLock()) {
      super.removeEditor();
    }
  } finally {
    inRemoveRequest = false;
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

@Override
public void removeEditor() {
  inRemoveRequest = true;
  try {
    synchronized (getTreeLock()) {
      super.removeEditor();
    }
  } finally {
    inRemoveRequest = false;
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public void removeEditor() {
  inRemoveRequest = true;
  try {
    synchronized (getTreeLock()) {
      super.removeEditor();
    }
  } finally {
    inRemoveRequest = false;
  }
}

代码示例来源:origin: openstreetmap/osmembrane

@Override
  public void actionPerformed(ActionEvent e) {
    applyChanges = false;
    editList.removeEditor();
    hideWindow();
  }
});

代码示例来源:origin: bcdev/beam

private static void removeRows(final JTable table, final int[] rows) {
  table.removeEditor();
  for (int i = rows.length - 1; i > -1; i--) {
    int row = rows[i];
    ((DefaultTableModel) table.getModel()).removeRow(row);
  }
}

代码示例来源:origin: openstreetmap/osmembrane

@Override
public void keyReleased(KeyEvent e) {
  // do not edit on delete, do delete the item
  if (e.getKeyCode() == KeyEvent.VK_DELETE) {
    editList.removeEditor();
    deleteButton.doClick();
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private static void removeRows(final JTable table, final int[] rows) {
  table.removeEditor();
  for (int i = rows.length - 1; i > -1; i--) {
    int row = rows[i];
    ((DefaultTableModel) table.getModel()).removeRow(row);
  }
}

代码示例来源:origin: senbox-org/s2tbx

private static void removeRows(final JTable table, final int[] rows) {
  table.removeEditor();
  for (int i = rows.length - 1; i > -1; i--) {
    int row = rows[i];
    ((DefaultTableModel) table.getModel()).removeRow(row);
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Overridden with backport from Mustang fix for #4684090, #4887999.
 */
@Override
public void removeEditor() {
  boolean isFocusOwnerInTheTable = isFocusOwnerDescending();
  // let super do its stuff
  super.removeEditor();
  if (isFocusOwnerInTheTable) {
    requestFocusInWindow();
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * Overridden with backport from Mustang fix for #4684090, #4887999.
 */
@Override
public void removeEditor() {
  boolean isFocusOwnerInTheTable = isFocusOwnerDescending();
  // let super do its stuff
  super.removeEditor();
  if (isFocusOwnerInTheTable) {
    requestFocusInWindow();
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Overridden with backport from Mustang fix for #4684090, #4887999.
 */
@Override
public void removeEditor() {
  boolean isFocusOwnerInTheTable = isFocusOwnerDescending();
  // let super do its stuff
  super.removeEditor();
  if (isFocusOwnerInTheTable) {
    requestFocusInWindow();
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Overridden with backport from Mustang fix for #4684090, #4887999.
 */
@Override
public void removeEditor() {
  boolean isFocusOwnerInTheTable = isFocusOwnerDescending();
  // let super do its stuff
  super.removeEditor();
  if (isFocusOwnerInTheTable) {
    requestFocusInWindow();
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private static void addRow(final JTable table, final Object[] rowData) {
  table.removeEditor();
  ((DefaultTableModel) table.getModel()).addRow(rowData);
  final int row = table.getRowCount() - 1;
  final int numCols = table.getColumnModel().getColumnCount();
  for (int i = 0; i < Math.min(numCols, rowData.length); i++) {
    Object o = rowData[i];
    table.setValueAt(o, row, i);
  }
  selectRows(table, row, row);
}

代码示例来源:origin: senbox-org/s2tbx

private static void addRow(final JTable table, final Object[] rowData) {
  table.removeEditor();
  ((DefaultTableModel) table.getModel()).addRow(rowData);
  final int row = table.getRowCount() - 1;
  final int numCols = table.getColumnModel().getColumnCount();
  for (int i = 0; i < Math.min(numCols, rowData.length); i++) {
    Object o = rowData[i];
    table.setValueAt(o, row, i);
  }
  selectRows(table, row, row);
}

代码示例来源:origin: bcdev/beam

private static void addRow(final JTable table, final Object[] rowData) {
  table.removeEditor();
  ((DefaultTableModel) table.getModel()).addRow(rowData);
  final int row = table.getRowCount() - 1;
  final int numCols = table.getColumnModel().getColumnCount();
  for (int i = 0; i < Math.min(numCols, rowData.length); i++) {
    Object o = rowData[i];
    table.setValueAt(o, row, i);
  }
  selectRows(table, row, row);
}

相关文章

JTable类方法