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

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

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

JTable.addNotify介绍

暂无

代码示例

代码示例来源:origin: pmd/pmd

  1. private void deleteMatchlistSelections() {
  2. int[] selectionIndices = resultsTable.getSelectedRows();
  3. for (int i = selectionIndices.length - 1; i >= 0; i--) {
  4. matches.remove(selectionIndices[i]);
  5. }
  6. resultsTable.getSelectionModel().clearSelection();
  7. resultsTable.addNotify();
  8. }

代码示例来源:origin: net.sourceforge.pmd/pmd-core

  1. private void deleteMatchlistSelections() {
  2. int[] selectionIndices = resultsTable.getSelectedRows();
  3. for (int i = selectionIndices.length - 1; i >= 0; i--) {
  4. matches.remove(selectionIndices[i]);
  5. }
  6. resultsTable.getSelectionModel().clearSelection();
  7. resultsTable.addNotify();
  8. }

代码示例来源:origin: MegaMek/mekhq

  1. @Override
  2. public void addNotify() {
  3. super.addNotify();
  4. Component c = getParent();
  5. // Keep scrolling of the row table in sync with the main table.
  6. if (c instanceof JViewport) {
  7. JViewport viewport = (JViewport) c;
  8. viewport.addChangeListener(this);
  9. }
  10. }

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-common

  1. public void addNotify(){
  2. super.addNotify();
  3. getTableHeader().addMouseListener(COLUMN_AUTO_RESIZER);
  4. }

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

  1. public void addNotify() {
  2. super.addNotify();
  3. // #57560: properties should always save changes
  4. Container top = getTopLevelAncestor();
  5. if (top instanceof Window) {
  6. ((Window) top).addWindowListener(parentListener = new WL());
  7. }
  8. }

相关文章

JTable类方法