本文整理了Java中javax.swing.JTable.getRootPane()
方法的一些代码示例,展示了JTable.getRootPane()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.getRootPane()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:getRootPane
暂无
代码示例来源:origin: info.aduna.commons/aduna-commons-swing
private JRootPane getRootPane() {
Window window = SwingUtilities.windowForComponent(table);
if (window instanceof RootPaneContainer) {
return ((RootPaneContainer) window).getRootPane();
}
else {
// try as a last resort
return table.getRootPane();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
InputMap imp = jt.getRootPane().getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
ActionMap am = jt.getRootPane().getActionMap();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
InputMap imp = jt.getRootPane().getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
ActionMap am = jt.getRootPane().getActionMap();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
InputMap imp = jt.getRootPane().getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
ActionMap am = jt.getRootPane().getActionMap();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
private void checkStoredGlassPane() {
// remember current glass pane to set back at end of dragging over this compoment
if (!DropGlassPane.isOriginalPaneStored()) {
Component comp = table.getRootPane().getGlassPane();
DropGlassPane.setOriginalPane(table, comp, comp.isVisible());
// set glass pane for paint selection line
dropPane = DropGlassPane.getDefault(table);
table.getRootPane().setGlassPane(dropPane);
dropPane.revalidate();
dropPane.setVisible(true);
log("dropPane was set"); // NOI18N
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Converts line's bounds by the bounds of the root pane. Drop glass pane
* is over this root pane. After covert a given line is set to drop glass pane.
* @param line line for show in drop glass pane */
private void convertBoundsAndSetDropLine(final Line2D line) {
int x1 = (int) line.getX1();
int x2 = (int) line.getX2();
int y1 = (int) line.getY1();
int y2 = (int) line.getY2();
Point p1 = SwingUtilities.convertPoint(table, x1, y1, table.getRootPane());
Point p2 = SwingUtilities.convertPoint(table, x2, y2, table.getRootPane());
line.setLine(p1, p2);
dropPane.setDropLine(line);
}
内容来源于网络,如有侵权,请联系作者删除!