javax.swing.Box.setMinimumSize()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(161)

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

Box.setMinimumSize介绍

暂无

代码示例

代码示例来源:origin: eu.mihosoft.vrl/vrl

private void initialize() {
  setStyle(createGroupStyle());
  Box box = Box.createVerticalBox();
  add(box);
  box.setMinimumSize(new Dimension(200, 120));
  box.setPreferredSize(new Dimension(200, 120));
  Component c = Box.createGlue();
  c.setSize(160, 100);
  c.setMinimumSize(new Dimension(160, 100));
  final ResizableContainer rc = new ResizableContainer(c, this);
  box.add(rc);
}

代码示例来源:origin: edu.stanford.protege/org.coode.dlquery

private JComponent createOptionsBox() {
  Box optionsBox = new Box(BoxLayout.Y_AXIS);
  optionsBox.setMinimumSize(new Dimension(50, 50));

代码示例来源:origin: eu.mihosoft.vrl/vrl

@Override
public void enterFullScreenMode(Dimension size) {
  super.enterFullScreenMode(size);
  previousPlotPaneSize = plotPane.getSize();
  container.setPreferredSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  container.setMinimumSize(null);
  container.setMaximumSize(null);
  plotPane.setPreferredSize(null);
  plotPane.setMinimumSize(null);
  plotPane.setMaximumSize(null);
  revalidate();
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

@Override
public void enterFullScreenMode(Dimension size) {
  super.enterFullScreenMode(size);
  previousPlotPaneSize = plotPane.getSize();
  container.setPreferredSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  container.setMinimumSize(null);
  container.setMaximumSize(null);
  plotPane.setPreferredSize(null);
  plotPane.setMinimumSize(null);
  plotPane.setMaximumSize(null);
  revalidate();
}

代码示例来源:origin: cmu-phil/tetrad

fileListBox.setMinimumSize(new Dimension(305, 250));
fileListBox.setMaximumSize(new Dimension(305, 250));
fileListBox.add(fileListScrollPane);
filePreviewBox.setMinimumSize(new Dimension(585, 250));
filePreviewBox.setMaximumSize(new Dimension(585, 250));
filesToValidateBox.setMinimumSize(new Dimension(305, 430));
filesToValidateBox.setMaximumSize(new Dimension(305, 430));
validationMessageBox.setMinimumSize(new Dimension(560, 430));
validationMessageBox.setMaximumSize(new Dimension(560, 430));

代码示例来源:origin: eu.mihosoft.vrl/vrl

@Override
public void leaveFullScreenMode() {
  super.leaveFullScreenMode();
  container.setPreferredSize(null);
  container.setMinimumSize(null);
  container.setMaximumSize(null);
  
  plotPane.setSize(previousPlotPaneSize);
  plotPane.setPreferredSize(previousPlotPaneSize);
  plotPane.setMinimumSize(minimumPlotPaneSize);
  
  revalidate();
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

@Override
public void leaveFullScreenMode() {
  super.leaveFullScreenMode();
  container.setPreferredSize(null);
  container.setMinimumSize(null);
  container.setMaximumSize(null);
  
  plotPane.setSize(previousPlotPaneSize);
  plotPane.setPreferredSize(previousPlotPaneSize);
  plotPane.setMinimumSize(minimumPlotPaneSize);
  
  revalidate();
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

iconBox.add(Box.createVerticalGlue());
iconBox.setPreferredSize(new Dimension(iconBoxSize, iconBoxSize));
iconBox.setMinimumSize(iconBox.getPreferredSize());
this.add(iconBox);
this.add(Box.createHorizontalStrut(0));

相关文章