本文整理了Java中javax.swing.JComboBox.setName()
方法的一些代码示例,展示了JComboBox.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.setName()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:setName
暂无
代码示例来源:origin: magefree/mage
cbSortBy.setMaximumSize(new java.awt.Dimension(120, 20));
cbSortBy.setMinimumSize(new java.awt.Dimension(120, 20));
cbSortBy.setName("SortBy"); // NOI18N
cbSortBy.setOpaque(false);
cbSortBy.setPreferredSize(new java.awt.Dimension(120, 20));
代码示例来源:origin: magefree/mage
cbExpansionSet.setMaximumSize(new java.awt.Dimension(250, 25));
cbExpansionSet.setMinimumSize(new java.awt.Dimension(250, 25));
cbExpansionSet.setName("cbExpansionSet"); // NOI18N
cbExpansionSet.setPreferredSize(new java.awt.Dimension(250, 25));
cbExpansionSet.addActionListener(new java.awt.event.ActionListener() {
代码示例来源:origin: dboissier/mongo4idea
readPreferenceComboBox.setName("readPreferenceComboBox");
serverUrlsField.setName("serverUrlsField");
usernameField.setName("usernameField");
authMethodGroup.add(plainAuthMethodRadioButton);
sshAuthenticationMethodComboBox.setName("sshAuthenticationMethodComboBox");
sshAuthenticationMethodComboBox.setModel(new DefaultComboBoxModel<>(
AuthenticationMethod.values()
代码示例来源:origin: joel-costigliola/assertj-examples
public static JComboBox<String> newBox(String name, String... items) {
JComboBox<String> box = new JComboBox<>(items);
box.setName(name);
return box;
}
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSensitivityAnalysisSelect() {
$objectMap.put("fieldSensitivityAnalysisSelect", fieldSensitivityAnalysisSelect = new JComboBox());
fieldSensitivityAnalysisSelect.setName("fieldSensitivityAnalysisSelect");
fieldSensitivityAnalysisSelect.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__fieldSensitivityAnalysisSelect"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldMetierSeasonInfo() {
$objectMap.put("fieldMetierSeasonInfo", fieldMetierSeasonInfo = new JComboBox());
fieldMetierSeasonInfo.setName("fieldMetierSeasonInfo");
fieldMetierSeasonInfo.addItemListener(JAXXUtil.getEventListener(ItemListener.class, "itemStateChanged", this, "doItemStateChanged__on__fieldMetierSeasonInfo"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldStrategySetOfVessels() {
$objectMap.put("fieldStrategySetOfVessels", fieldStrategySetOfVessels = new JComboBox());
fieldStrategySetOfVessels.setName("fieldStrategySetOfVessels");
fieldStrategySetOfVessels.addItemListener(JAXXUtil.getEventListener(ItemListener.class, "itemStateChanged", this, "doItemStateChanged__on__fieldStrategySetOfVessels"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSimulParamsRegion() {
$objectMap.put("fieldSimulParamsRegion", fieldSimulParamsRegion = new JComboBox<String>());
fieldSimulParamsRegion.setName("fieldSimulParamsRegion");
fieldSimulParamsRegion.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__fieldSimulParamsRegion"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldCurrentRegion() {
$objectMap.put("fieldCurrentRegion", fieldCurrentRegion = new JComboBox<String>());
fieldCurrentRegion.setName("fieldCurrentRegion");
fieldCurrentRegion.addItemListener(JAXXUtil.getEventListener(ItemListener.class, "itemStateChanged", this, "doItemStateChanged__on__fieldCurrentRegion"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldStrategyMonthInfoTripType() {
$objectMap.put("fieldStrategyMonthInfoTripType", fieldStrategyMonthInfoTripType = new JComboBox());
fieldStrategyMonthInfoTripType.setName("fieldStrategyMonthInfoTripType");
fieldStrategyMonthInfoTripType.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__fieldStrategyMonthInfoTripType"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSimulAdvParamsSimulatorSelect() {
$objectMap.put("fieldSimulAdvParamsSimulatorSelect", fieldSimulAdvParamsSimulatorSelect = new JComboBox());
fieldSimulAdvParamsSimulatorSelect.setName("fieldSimulAdvParamsSimulatorSelect");
fieldSimulAdvParamsSimulatorSelect.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__fieldSimulAdvParamsSimulatorSelect"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFormuleComboBox() {
$objectMap.put("formuleComboBox", formuleComboBox = new JComboBox());
formuleComboBox.setName("formuleComboBox");
formuleComboBox.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__formuleComboBox"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldCell() {
$objectMap.put("fieldCell", fieldCell = new JComboBox());
fieldCell.setName("fieldCell");
fieldCell.addItemListener(JAXXUtil.getEventListener(ItemListener.class, "itemStateChanged", this, "doItemStateChanged__on__fieldCell"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createVariableTypeCombo() {
$objectMap.put("variableTypeCombo", variableTypeCombo = new JComboBox());
variableTypeCombo.setName("variableTypeCombo");
variableTypeCombo.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__variableTypeCombo"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMetierSeasonInfoCombo() {
$objectMap.put("metierSeasonInfoCombo", metierSeasonInfoCombo = new JComboBox());
metierSeasonInfoCombo.setName("metierSeasonInfoCombo");
metierSeasonInfoCombo.addItemListener(JAXXUtil.getEventListener(ItemListener.class, "itemStateChanged", this, "doItemStateChanged__on__metierSeasonInfoCombo"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldPopulationMigrationSeasonChooser() {
$objectMap.put("fieldPopulationMigrationSeasonChooser", fieldPopulationMigrationSeasonChooser = new JComboBox());
fieldPopulationMigrationSeasonChooser.setName("fieldPopulationMigrationSeasonChooser");
fieldPopulationMigrationSeasonChooser.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__fieldPopulationMigrationSeasonChooser"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
protected void createCombobox() {
$objectMap.put("combobox", combobox = new JComboBox());
combobox.setName("combobox");
combobox.addFocusListener(JAXXUtil.getEventListener(FocusListener.class, "focusGained", this, "doFocusGained__on__combobox"));
}
代码示例来源:origin: nl.cloudfarming.client/geometry-shape-type
public ShapePropertyMappingPanel() {
this.setLayout(new MigLayout("wrap 2"));
this.setBackground(Color.white);
namePropertyBox = new JComboBox(namePropertiesModel);
namePropertyBox.setName(PROP_COMBOBOX_MAPPING_NAME);
valuePropertyBox = new JComboBox(valuePropertiesModel);
valuePropertyBox.setName(PROP_COMBOBOX_MAPPING_VALUE);
this.add(new JLabel(Bundle.Shape_property_mapping_panel_name_label()));
this.add(namePropertyBox);
this.add(new JLabel(Bundle.Shape_property_mapping_panel_name_value()));
this.add(valuePropertyBox);
}
代码示例来源:origin: nl.cloudfarming.client/field-shape-type
public ShapePropertiesPanel() {
setLayout(new MigLayout("wrap 2"));
typeBox.setName(PROP_COMBOBOX_IMPORT_TYPE);
this.setBackground(Color.white);
}
代码示例来源:origin: nl.cloudfarming.client/field-shape-type
public ShapePropertyMappingPanel() {
this.setLayout(new MigLayout("wrap 2"));
this.setBackground(Color.white);
propertiesBox = new JComboBox(shapePropertiesModel);
propertiesBox.setName(PROP_COMBOBOX_NAME);
this.add(new JLabel(Bundle.Shape_property_mapping_panel_name_label()), "gaptop 20");
this.add(propertiesBox, "gaptop 20");
}
内容来源于网络,如有侵权,请联系作者删除!