本文整理了Java中javax.swing.JComboBox.getMinimumSize()
方法的一些代码示例,展示了JComboBox.getMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.getMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:getMinimumSize
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-profiler
public Dimension getMinimumSize() {
Dimension d = super.getMinimumSize();
d.width = 1;
return d;
}
public Dimension getMaximumSize() {
代码示例来源:origin: org.gephi/directory-chooser
@Override
public Dimension getMinimumSize() {
Dimension d = super.getMinimumSize();
d.width = 60;
return d;
}
代码示例来源:origin: cpesch/RouteConverter
private void createUIComponents() {
comboBoxChoosePositionList = new JComboBox<FormatAndRoutesModel>() {
public Dimension getPreferredSize() {
Dimension preferredSize = super.getPreferredSize();
preferredSize.width = convertPanel.getPreferredSize().width - 300;
return preferredSize;
}
};
comboBoxChoosePositionList.setMinimumSize(new Dimension(-1, comboBoxChoosePositionList.getMinimumSize().height));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
private void initSelectionCombos () {
if (fixedRevisions) {
treeSelectionPanel.setVisible(false);
} else {
cmbDiffTreeFirst.setMinimumSize(cmbDiffTreeFirst.getMinimumSize());
cmbDiffTreeSecond.setMinimumSize(cmbDiffTreeSecond.getMinimumSize());
treeSelectionPanel.setMinimumSize(treeSelectionPanel.getMinimumSize());
cmbDiffTreeFirst.setRenderer(new HgRevisionCellRenderer());
cmbDiffTreeFirst.setModel(new DefaultComboBoxModel(new HgRevision[] { revisionRight }));
cmbDiffTreeFirst.addActionListener(this);
cmbDiffTreeSecond.setRenderer(new HgRevisionCellRenderer());
cmbDiffTreeSecond.setModel(new DefaultComboBoxModel(new HgRevision[] { revisionLeft }));
cmbDiffTreeSecond.addActionListener(this);
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
public ConfigComboBox(ConfigurationModel model, final AbstractTableModel tmodel)
{
setLayout(new GridBagLayout());
JLabel label = new JLabel("Configuration");
GridBagConstraints gc = new GridBagConstraints();
add(label, gc);
combobox = new JComboBox(model);
combobox.setMinimumSize(new Dimension(200, (int) combobox.getMinimumSize().getHeight()));
gc = new GridBagConstraints();
gc.gridx = 1;
gc.weightx = 1.0;
gc.weighty = 1.0;
gc.fill = GridBagConstraints.BOTH;
gc.insets = new Insets(5, 5, 0, 0);
add(combobox, gc);
if (tmodel != null)
{
combobox.addItemListener(new ItemListener()
{
public void itemStateChanged(ItemEvent e)
{
tmodel.fireTableStructureChanged();
}
});
}
}
代码示例来源:origin: com.github.houbie/rhino-mod
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
代码示例来源:origin: ro.isdc.wro4j/rhino
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
代码示例来源:origin: com.github.tntim96/rhino
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
内容来源于网络,如有侵权,请联系作者删除!