本文整理了Java中javax.swing.JTabbedPane.requestFocusInWindow()
方法的一些代码示例,展示了JTabbedPane.requestFocusInWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.requestFocusInWindow()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!