本文整理了Java中javax.swing.JDialog.getGraphicsConfiguration()
方法的一些代码示例,展示了JDialog.getGraphicsConfiguration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.getGraphicsConfiguration()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:getGraphicsConfiguration
暂无
代码示例来源:origin: javax.help/javahelp
/**
* Requests the presentation be located at a given position.
*/
public void setLocation(Point p) {
debug("setLocation");
location = p;
if (jhelp != null) {
if (modallyActivated) {
if (dialog != null) {
GraphicsConfiguration gc =
dialog.getGraphicsConfiguration();
Rectangle gcBounds = gc.getBounds();
Point loc = new Point (gcBounds.x + p.x,
gcBounds.y + p.y);
dialog.setLocation(loc);
}
} else {
if (frame != null) {
GraphicsConfiguration gc =
frame.getGraphicsConfiguration();
Rectangle gcBounds = gc.getBounds();
Point loc = new Point (gcBounds.x + p.x,
gcBounds.y + p.y);
frame.setLocation(loc);
}
}
}
}
代码示例来源:origin: org.jclarion/clarion-runtime
panel.add(exit);
Rectangle r = dialog.getGraphicsConfiguration().getBounds();
代码示例来源:origin: org.jclarion/clarion-runtime
right.add(new JScrollPane(table),BorderLayout.CENTER);
Rectangle r = dialog.getGraphicsConfiguration().getBounds();
dialog.setSize(r.width/2,r.height/2);
dialog.setLocation(r.width/8+r.x,r.height/8+r.y);
代码示例来源:origin: javax.help/javahelp
Point dlocation = dialog.getLocation();
if (isXinerama()) {
GraphicsConfiguration gc = dialog.getGraphicsConfiguration();
Rectangle gcBounds = gc.getBounds();
return new Point(dlocation.x - gcBounds.x,
代码示例来源:origin: javax.help/javahelp
if (modallyActivated) {
if (dialog != null) {
gc = dialog.getGraphicsConfiguration();
代码示例来源:origin: org.jclarion/clarion-runtime
Rectangle screen = dialog.getGraphicsConfiguration().getBounds();
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
"Quaqua.OptionPane.destructiveOption", 2);
JDialog dialog = pane.createDialog(app.getComponent(), null);
Rectangle screenBounds = dialog.getGraphicsConfiguration().getBounds();
if (app.getComponent() == null || !screenBounds.contains(app.getComponent().getBounds())) {
内容来源于网络,如有侵权,请联系作者删除!