本文整理了Java中javax.swing.Box.setMaximumSize()
方法的一些代码示例,展示了Box.setMaximumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Box.setMaximumSize()
方法的具体详情如下:
包路径:javax.swing.Box
类名称:Box
方法名:setMaximumSize
暂无
代码示例来源:origin: RaiMan/SikuliX2
buttons.setMaximumSize(new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE));
textPane.setMaximumSize(new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE));
代码示例来源:origin: de.sciss/prefuse-core
else
m_sbox.setBorder(null);
m_sbox.setMaximumSize(new Dimension(400, 100));
m_sbox.setPreferredSize(new Dimension(171, 20));
代码示例来源:origin: biojava/biojava
hBox1.setMaximumSize(new Dimension(Short.MAX_VALUE,30));
hBox2.setMaximumSize(new Dimension(Short.MAX_VALUE,30));
代码示例来源:origin: cmu-phil/tetrad
instructionBox.setMaximumSize(new Dimension(820, 40));
代码示例来源:origin: pl.touk/test-generator
buttonBox.setPreferredSize(new Dimension(Integer.MAX_VALUE, 30));
buttonBox.setMaximumSize(new Dimension(Integer.MAX_VALUE, 30));
代码示例来源:origin: lbalazscs/Pixelitor
private void initPresetBox() {
presetsBox = Box.createVerticalBox();
presetsBox.setBorder(createTitledBorder("Presets"));
if (size == 3) {
init3x3Presets();
} else if (size == 5) {
init5x5Presets();
} else {
throw new IllegalStateException("size = " + size);
}
presetsBox.add(Box.createVerticalStrut(20));
JButton randomizeButton = new JButton("Randomize");
randomizeButton.addActionListener(e -> {
setValues(Convolve.getRandomKernelMatrix(size));
actionPerformed(e);
});
presetsBox.add(randomizeButton);
JButton doNothingButton = new JButton("Do Nothing");
doNothingButton.addActionListener(e -> {
reset(size);
actionPerformed(e);
});
presetsBox.add(doNothingButton);
presetsBox.setMaximumSize(presetsBox.getPreferredSize());
presetsBox.setAlignmentY(Component.TOP_ALIGNMENT);
add(presetsBox);
}
代码示例来源:origin: com.sikulix/sikulixapi
buttons.setMaximumSize(new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE));
textPane.setMaximumSize(new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE));
代码示例来源:origin: cmu-phil/tetrad
checkbox.setBorder(null);
c.add(checkbox);
c.setMaximumSize(new Dimension(1000, 30));
add(c);
代码示例来源:origin: biojava/biojava
JComboBox<String> style = new JComboBox<>(styles);
hBox1.setMaximumSize(new Dimension(Short.MAX_VALUE, 30));
hBox2.setMaximumSize(new Dimension(Short.MAX_VALUE, 30));
代码示例来源:origin: cmu-phil/tetrad
instructionBox.setMaximumSize(new Dimension(820, 40));
代码示例来源: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
instructionBox.setMaximumSize(new Dimension(820, 40));
代码示例来源:origin: cmu-phil/tetrad
instructionBox.setMaximumSize(new Dimension(820, 40));
代码示例来源:origin: cmu-phil/tetrad
instructionBox.setMaximumSize(new Dimension(820, 40));
代码示例来源:origin: lbalazscs/Pixelitor
private void initLeftVerticalBox(Convolve filter) {
Box box = Box.createVerticalBox();
addTextFieldsPanel(box);
addNormalizeButton(box);
addTryButton(box);
box.add(Box.createVerticalStrut(20));
addConvolveMethodSelector(filter, box);
box.setMaximumSize(box.getPreferredSize());
box.setAlignmentY(Component.TOP_ALIGNMENT);
add(box);
}
代码示例来源:origin: cmu-phil/tetrad
checkbox.setBorder(null);
c.add(checkbox);
c.setMaximumSize(new Dimension(1000, 30));
add(c);
代码示例来源: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: openpreserve/jhove
maxHeight = 640;
_mainBox.setMaximumSize (new Dimension (500, maxHeight));
_mainBox.setPreferredSize (new Dimension (400, maxHeight));
内容来源于网络,如有侵权,请联系作者删除!