本文整理了Java中javax.swing.JTextField.setName()
方法的一些代码示例,展示了JTextField.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.setName()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:setName
暂无
代码示例来源:origin: dboissier/mongo4idea
private AddKeyDialog(MongoEditionPanel mongoEditionPanel) {
super(mongoEditionPanel);
mainPanel.setPreferredSize(GuiUtils.enlargeWidth(mainPanel.getPreferredSize(), 1.5d));
valuePanel.setLayout(new BorderLayout());
nameTextfield.setName("keyName");
typeCombobox.setName("valueType");
}
代码示例来源:origin: magefree/mage
txtMessage.setName(""); // NOI18N
txtMessage.setPreferredSize(new java.awt.Dimension(6, 70));
txtMessage.addKeyListener(new java.awt.event.KeyAdapter() {
代码示例来源:origin: magefree/mage
jUserName.setName("Username"); // NOI18N
代码示例来源:origin: dboissier/mongo4idea
this.mongoManager = mongoManager;
labelField.setName("labelField");
feedbackLabel.setName("feedbackLabel");
settingTabbedPane.setName("tabbedSettings");
serverUrlsField.setName("serverUrlsField");
usernameField.setName("usernameField");
passwordField.setName("passwordField");
authenticationDatabaseField.setName("authenticationDatabaseField");
authenticationDatabaseField.setToolTipText("admin by default, otherwise set the user database here if restriced access");
mongoCRAuthRadioButton.setName("mongoCRAuthField");
plainAuthMethodRadioButton.setName("defaultAuthMethod");
sshProxyUrlField.setName("sshProxyUrlField");
sshProxyUserField.setName("sshProxyUsernameField");
sshProxyPasswordField.setName("sshProxyPasswordField");
userDatabaseField.setName("userDatabaseField");
userDatabaseField.setToolTipText("If your access is restricted to a specific database (e.g.: MongoLab), you can set it right here");
defaultRowLimitTextField.setName("defaultRowLimitTextField");
mongoShellOptionsPanel.setBorder(IdeBorderFactory.createTitledBorder("Mongo shell options", true));
shellArgumentsLineField.setDialogCaption("Mongo arguments");
privateKeyPathField.getTextField().setName("sshPrivateKeyPathField");
代码示例来源:origin: dboissier/mongo4idea
private LabeledComponent<TextFieldWithBrowseButton> createShellPathField() {
LabeledComponent<TextFieldWithBrowseButton> shellPathField = new LabeledComponent<>();
TextFieldWithBrowseButton component = new TextFieldWithBrowseButton();
component.getChildComponent().setName("shellPathField");
shellPathField.setComponent(component);
shellPathField.getComponent().addBrowseFolderListener("Mongo Shell Configuration", "", null,
new FileChooserDescriptor(true, false, false, false, false, false));
shellPathField.getComponent().setText(configuration.getShellPath());
return shellPathField;
}
代码示例来源:origin: joel-costigliola/assertj-examples
public static JTextField newPasswordField(String name) {
JTextField field = new JPasswordField(20);
field.setName(name);
return field;
}
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSimulParamsNbAnnees() {
$objectMap.put("fieldSimulParamsNbAnnees", fieldSimulParamsNbAnnees = new JTextField());
fieldSimulParamsNbAnnees.setName("fieldSimulParamsNbAnnees");
fieldSimulParamsNbAnnees.setColumns(15);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldCellName() {
$objectMap.put("fieldCellName", fieldCellName = new JTextField());
fieldCellName.setName("fieldCellName");
fieldCellName.setColumns(15);
fieldCellName.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldCellName"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldObservationName() {
$objectMap.put("fieldObservationName", fieldObservationName = new JTextField());
fieldObservationName.setName("fieldObservationName");
fieldObservationName.setColumns(15);
fieldObservationName.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldObservationName"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldStrategyName() {
$objectMap.put("fieldStrategyName", fieldStrategyName = new JTextField());
fieldStrategyName.setName("fieldStrategyName");
fieldStrategyName.setColumns(15);
fieldStrategyName.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldStrategyName"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldNumberOfGroup() {
$objectMap.put("fieldNumberOfGroup", fieldNumberOfGroup = new JTextField());
fieldNumberOfGroup.setName("fieldNumberOfGroup");
fieldNumberOfGroup.setColumns(15);
fieldNumberOfGroup.addFocusListener(JAXXUtil.getEventListener(FocusListener.class, "focusLost", this, "doFocusLost__on__fieldNumberOfGroup"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createSameSizeNumberOfGroup() {
$objectMap.put("sameSizeNumberOfGroup", sameSizeNumberOfGroup = new JTextField());
sameSizeNumberOfGroup.setName("sameSizeNumberOfGroup");
sameSizeNumberOfGroup.setColumns(15);
sameSizeNumberOfGroup.addFocusListener(JAXXUtil.getEventListener(FocusListener.class, "focusLost", this, "doFocusLost__on__sameSizeNumberOfGroup"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldPopulationGroupMaxLength() {
$objectMap.put("fieldPopulationGroupMaxLength", fieldPopulationGroupMaxLength = new JTextField());
fieldPopulationGroupMaxLength.setName("fieldPopulationGroupMaxLength");
fieldPopulationGroupMaxLength.setColumns(15);
fieldPopulationGroupMaxLength.setEnabled(false);
fieldPopulationGroupMaxLength.setToolTipText(t("isisfish.populationGroup.maximumLength"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldPopulationGroupMinLength() {
$objectMap.put("fieldPopulationGroupMinLength", fieldPopulationGroupMinLength = new JTextField());
fieldPopulationGroupMinLength.setName("fieldPopulationGroupMinLength");
fieldPopulationGroupMinLength.setColumns(15);
fieldPopulationGroupMinLength.setEnabled(false);
fieldPopulationGroupMinLength.setToolTipText(t("isisfish.populationGroup.minimumLength"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createSshPbsQsubOptionsField() {
$objectMap.put("sshPbsQsubOptionsField", sshPbsQsubOptionsField = new JTextField());
sshPbsQsubOptionsField.setName("sshPbsQsubOptionsField");
sshPbsQsubOptionsField.setColumns(15);
sshPbsQsubOptionsField.setToolTipText(t("isisfish.config.main.simulation.ssh.pbsqsuboptions.description"));
sshPbsQsubOptionsField.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__sshPbsQsubOptionsField"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSpeciesCodeRubbin() {
$objectMap.put("fieldSpeciesCodeRubbin", fieldSpeciesCodeRubbin = new JTextField());
fieldSpeciesCodeRubbin.setName("fieldSpeciesCodeRubbin");
fieldSpeciesCodeRubbin.setColumns(15);
fieldSpeciesCodeRubbin.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldSpeciesCodeRubbin"));
fieldSpeciesCodeRubbin.putClientProperty("sensitivityBean", Species.class);
fieldSpeciesCodeRubbin.putClientProperty("sensitivityMethod", "CodeRubbin");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldVesselTypeUnitFuelCostOfTravel() {
$objectMap.put("fieldVesselTypeUnitFuelCostOfTravel", fieldVesselTypeUnitFuelCostOfTravel = new JTextField());
fieldVesselTypeUnitFuelCostOfTravel.setName("fieldVesselTypeUnitFuelCostOfTravel");
fieldVesselTypeUnitFuelCostOfTravel.setColumns(15);
fieldVesselTypeUnitFuelCostOfTravel.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldVesselTypeUnitFuelCostOfTravel"));
fieldVesselTypeUnitFuelCostOfTravel.putClientProperty("sensitivityBean", VesselType.class);
fieldVesselTypeUnitFuelCostOfTravel.putClientProperty("sensitivityMethod", "UnitFuelCostOfTravel");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createServerPrivateKeyFile() {
$objectMap.put("serverPrivateKeyFile", serverPrivateKeyFile = new JTextField());
serverPrivateKeyFile.setName("serverPrivateKeyFile");
serverPrivateKeyFile.setColumns(15);
serverPrivateKeyFile.setColumns(28);
serverPrivateKeyFile.setEditable(false);
if (serverPrivateKeyFile.getFont() != null) {
serverPrivateKeyFile.setFont(serverPrivateKeyFile.getFont().deriveFont((float) 12));
}
SwingUtil.setComponentHeight(serverPrivateKeyFile,25);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldEffortDescriptionFishingOperationDuration() {
$objectMap.put("fieldEffortDescriptionFishingOperationDuration", fieldEffortDescriptionFishingOperationDuration = new JTextField());
fieldEffortDescriptionFishingOperationDuration.setName("fieldEffortDescriptionFishingOperationDuration");
fieldEffortDescriptionFishingOperationDuration.setColumns(15);
fieldEffortDescriptionFishingOperationDuration.setToolTipText(t("isisfish.effortDescription.fishingOperationDuration.tooltip"));
fieldEffortDescriptionFishingOperationDuration.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldEffortDescriptionFishingOperationDuration"));
fieldEffortDescriptionFishingOperationDuration.putClientProperty("sensitivityBean", EffortDescription.class);
fieldEffortDescriptionFishingOperationDuration.putClientProperty("sensitivityMethod", "FishingOperationDuration");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createServerPrivateKeyFile() {
$objectMap.put("serverPrivateKeyFile", serverPrivateKeyFile = new JTextField());
serverPrivateKeyFile.setName("serverPrivateKeyFile");
serverPrivateKeyFile.setColumns(15);
serverPrivateKeyFile.setColumns(28);
if (serverPrivateKeyFile.getFont() != null) {
serverPrivateKeyFile.setFont(serverPrivateKeyFile.getFont().deriveFont((float) 12));
}
SwingUtil.setComponentHeight(serverPrivateKeyFile,25);
serverPrivateKeyFile.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__serverPrivateKeyFile"));
}
内容来源于网络,如有侵权,请联系作者删除!