javax.swing.JTabbedPane.requestFocusInWindow()方法的使用及代码示例

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

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

JTabbedPane.requestFocusInWindow介绍

暂无

代码示例

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

private void performStateChanged()
{
  // Needed to guarantee other components a focus lost
  // and to allow to enter the tabs components via tab
  // key in a well defined way (the user can see where the focus is).
  _tabPnl.requestFocusInWindow();
  updateState();
}

代码示例来源:origin: realXuJiang/bigtable-sql

private void performStateChanged()
{
  // Needed to guarantee other components a focus lost
  // and to allow to enter the tabs components via tab
  // key in a well defined way (the user can see where the focus is).
  _tabPnl.requestFocusInWindow();
  updateState();
}

代码示例来源:origin: com.jidesoft/jide-oss

public void actionPerformed(ActionEvent e) {
    JTabbedPane pane = (JTabbedPane) e.getSource();
    if (!pane.requestFocusInWindow()) {
      pane.requestFocus();
    }
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

void openDiff (HgFileNode[] nodes) {
  for (HgFileNode node : nodes) {
    if (tabbedPane == null) {
      initializeTabs();
    }
    File file = node.getFile();
    MultiDiffPanel panel = displayedDiffs.get(file);
    if (panel == null) {
      panel = new MultiDiffPanel(file, HgRevision.BASE, HgRevision.CURRENT, node.getInformation(), false, -1); // switch the last parameter to true if editable diff works poorly
      displayedDiffs.put(file, panel);
    }
    if (tabbedPane.indexOfComponent(panel) == -1) {
      tabbedPane.addTab(file.getName(), panel);
    }
    tabbedPane.setSelectedComponent(panel);
    tabbedPane.requestFocusInWindow();
    panel.requestActive();
  }
  revalidate();
  repaint();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-remotefs-versioning-api

tabbedPane.requestFocusInWindow();
    newDiff = true;
tabbedPane.requestFocusInWindow();
newDiff = true;

相关文章

JTabbedPane类方法