java.applet.Applet.getSize()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(105)

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

Applet.getSize介绍

暂无

代码示例

代码示例来源:origin: org.scijava/j3dutils

@Override
public void appletResize(int width, int height) {
// Change the frame's size by the same amount that the applet's
// size is changing.
Dimension frameSize = getSize();
frameSize.width += width - appletSize.width;
frameSize.height += height - appletSize.height;
setSize( frameSize );
appletSize = applet.getSize();
}

代码示例来源:origin: org.scijava/j3dutils

@Override
public void appletResize( int width, int height ) {
  // Change the frame's size by the same amount that the applet's
  // size is changing.
  Dimension frameSize = getSize();
  frameSize.width += width - appletSize.width;
  frameSize.height += height - appletSize.height;
  setSize( frameSize );
  appletSize = applet.getSize();
}

代码示例来源:origin: IanDarwin/javasrc

Dimension d = ai.getSize();
d.height += aa.getSize().height;
f.setSize(d);

代码示例来源:origin: org.scijava/j3dutils

appletSize = applet.getSize();
applet.setSize( width, height );
setVisible(true);

代码示例来源:origin: org.scijava/j3dutils

appletSize = applet.getSize();
applet.setSize( width, height );
setVisible(true);

相关文章