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

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

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

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),

相关文章

JInternalFrame类方法