本文整理了Java中javax.swing.JInternalFrame.getMinimumSize()
方法的一些代码示例,展示了JInternalFrame.getMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.getMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:getMinimumSize
暂无
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
Dimension minSize = window.getMinimumSize();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Sets the Shaded attribute of the InternalFrameWindow object
*
* @param b The new Shaded value
*/
public void setShaded(boolean b) {
if (b == shaded) { return; }
if (b == true) {
Rectangle bounds = frame.getBounds();
Rectangle p = new Rectangle(bounds.x, bounds.y, bounds.width,
bounds.height);
frame.putClientProperty(SHADE_BOUNDS_PROPERTY, p);
frame.setBounds(p.x, p.y, p.width, frame.getMinimumSize().height - 2);
} else {
Point location = frame.getLocation();
Rectangle p = (Rectangle)frame.getClientProperty(SHADE_BOUNDS_PROPERTY);
frame.getDesktopPane().getDesktopManager().setBoundsForFrame(frame,
location.x, location.y, p.width, p.height);
frame.putClientProperty(SHADE_BOUNDS_PROPERTY, null);
}
shaded = b;
}
代码示例来源:origin: Geomatys/geotoolkit
frame.add(component);
frame.pack();
final Dimension size = frame.getMinimumSize();
if (size != null) {
frame.setSize(max(frame.getWidth(), size.width),
内容来源于网络,如有侵权,请联系作者删除!