本文整理了Java中javax.swing.JInternalFrame.reshape()
方法的一些代码示例,展示了JInternalFrame.reshape()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.reshape()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:reshape
暂无
代码示例来源:origin: stackoverflow.com
Component invoker = e.getComponent();
child.reshape((invoker.getWidth() - child.getWidth())/2, (invoker.getHeight() - child.getHeight())/2,300,200);
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
try {
frames[i].setMaximum(false);
frames[i].reshape(c * width, r * height, width, height);
r++;
if (r == rows) {
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
public void cascadeWindows() {
JDesktopPane desktop = OVTK2Desktop.getInstance().getDesktopPane();
JInternalFrame[] frames = desktop.getAllFrames();
int x = 0;
int y = 0;
int width = desktop.getWidth() / 2;
int height = desktop.getHeight() / 2;
for (int i = 0; i < frames.length; i++) {
if (!frames[i].isIcon()) {
try { /*
* try to make maximized frames resizable this might be
* vetoed
*/
frames[i].setMaximum(false);
frames[i].reshape(x, y, width, height);
x += frameDistance;
y += frameDistance;
// wrap around at the desktop edge
if (x + width > desktop.getWidth())
x = 0;
if (y + height > desktop.getHeight())
y = 0;
} catch (PropertyVetoException e) {
}
}
}
}
代码示例来源:origin: realXuJiang/bigtable-sql
frame.reshape(xPos, yPos, width, height);
xPos += width;
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
frame.reshape(xPos, yPos, width, height);
xPos += width;
内容来源于网络,如有侵权,请联系作者删除!