javax.swing.JComboBox.getMaximumSize()方法的使用及代码示例

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

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

JComboBox.getMaximumSize介绍

暂无

代码示例

代码示例来源:origin: tamirhassan/pdfxtk

@Override
  public Dimension getMaximumSize() {
    
    //Need to override because of height resize bug
    Dimension max = super.getMaximumSize();
    max.height = getPreferredSize().height;
    
    return max;
  }
};

代码示例来源:origin: tamirhassan/pdfxtk

@Override
  public Dimension getMaximumSize() {
    
    //Need to override because of height resize bug
    Dimension max = super.getMaximumSize();
    max.height = getPreferredSize().height;
    return max;
  }
};

代码示例来源:origin: tamirhassan/pdfxtk

@Override
  public Dimension getMaximumSize() {
    
    //Need to override because of height resize bug
    Dimension max = super.getMaximumSize();
    max.height = getPreferredSize().height;
    max.width = getPreferredSize().width;
    return max;
  }
};

代码示例来源:origin: vasl-developers/vasl

model.addElement("Level 3");
model.addElement("Level 4");
from.setMaximumSize(new Dimension(from.getMaximumSize().width, from.getPreferredSize().height));
to = new JComboBox();
model = (DefaultComboBoxModel) to.getModel();
model.addElement("Level 0");
model.addElement("Level 1");
to.setMaximumSize(new Dimension(to.getMaximumSize().width, to.getPreferredSize().height));
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
panel.add(new JLabel("All"));

代码示例来源:origin: nz.ac.waikato.cms.moa/moa

paramBox.setMaximumSize(new Dimension(paramBox.getMaximumSize().width, paramBox.getPreferredSize().height));
paramBox.setEnabled(false);
paramBox.addActionListener(new ActionListener() {

代码示例来源:origin: MegaMek/megamek

skinFiles.setMaximumSize(new Dimension(400,skinFiles.getMaximumSize().height));
JLabel skinFileLabel = new JLabel(Messages.getString("CommonSettingsDialog.skinFile")); //$NON-NLS-1$
row = new ArrayList<>();
tileSetChoice.setMaximumSize(new Dimension(400,tileSetChoice.getMaximumSize().height));
row = new ArrayList<>();
row.add(tileSetChoiceLabel);

代码示例来源:origin: cpesch/RouteConverter

});
int width = getMaxWidth("19", 0);
comboBoxZoom.setMaximumSize(new Dimension(width, comboBoxZoom.getMaximumSize().height));
comboBoxZoom.setPreferredSize(new Dimension(width, comboBoxZoom.getPreferredSize().height));

相关文章

JComboBox类方法