javax.swing.JInternalFrame.reshape()方法的使用及代码示例

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

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

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;

相关文章

JInternalFrame类方法