jButton1.setName("findServerBtn"); // NOI18N jButton1.addActionListener(evt -> findPublicServerActionPerformed(evt));
btnImport.setName("btnImport"); // NOI18N btnImport.addActionListener(evt -> { Object[] options = {"File", "Clipboard", "Append from Clipboard"}; btnSubmit.setName("btnSubmit"); // NOI18N btnSubmit.addActionListener(evt -> btnSubmitActionPerformed(evt)); btnSubmitTimer.setName("btnSubmitTimer"); btnSubmitTimer.addActionListener(evt -> btnSubmitTimerActionPerformed(evt)); btnAddLand.setName("btnAddLand"); // NOI18N btnAddLand.addActionListener(evt -> btnAddLandActionPerformed(evt)); btnGenDeck.setName("btnGenDeck"); btnGenDeck.addActionListener(evt -> btnGenDeckActionPerformed(evt)); txtTimeRemaining.setEditable(false);
btnFindMain.setMaximumSize(new java.awt.Dimension(42, 23)); btnFindMain.setMinimumSize(new java.awt.Dimension(42, 23)); btnFindMain.setName("connectXmageDeBtn"); // NOI18N btnFindMain.setPreferredSize(new java.awt.Dimension(23, 23)); btnFindMain.addActionListener(new java.awt.event.ActionListener() { btnFindLocal.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnFindLocal.setMargin(new java.awt.Insets(2, 2, 2, 2)); btnFindLocal.setName("connectLocalhostBtn"); // NOI18N btnFindLocal.setPreferredSize(new java.awt.Dimension(23, 23)); btnFindLocal.addActionListener(new java.awt.event.ActionListener() { btnFindUs.setAlignmentY(0.0F); btnFindUs.setMargin(new java.awt.Insets(2, 2, 2, 2)); btnFindUs.setName("connectXmageusBtn"); // NOI18N btnFindUs.setPreferredSize(new java.awt.Dimension(23, 23)); btnFindUs.addActionListener(new java.awt.event.ActionListener() { btnFindOther.setToolTipText("Choose server from full servers list"); btnFindOther.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btnFindOther.setName("findServerBtn"); // NOI18N btnFindOther.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) {
btn.setName(TOOLBAR_POINTER_BUTTON_NAME); toolBar.add(btn); cursorToolGrp.add(btn); btn.setName(TOOLBAR_ZOOMIN_BUTTON_NAME); toolBar.add(btn); cursorToolGrp.add(btn); btn.setName(TOOLBAR_ZOOMOUT_BUTTON_NAME); toolBar.add(btn); cursorToolGrp.add(btn); btn.setName(TOOLBAR_PAN_BUTTON_NAME); toolBar.add(btn); cursorToolGrp.add(btn); btn.setName(TOOLBAR_INFO_BUTTON_NAME); toolBar.add(btn); btn.setName(TOOLBAR_RESET_BUTTON_NAME); toolBar.add(btn);
defaultRowLimitTextField.setDocument(new NumberDocument()); testConnectionButton.setName("testConnection");
public void setApproveAction(Action action) { actionApproveDelegate = action; actionApproveButton.setAction(actionApproveDelegate); actionApproveButton.setName("VfsBrowser.open"); actionApproveButton.setText(String.format("%s [Ctrl+Enter]", actionApproveDelegate.getValue(Action.NAME))); if (targetFileSelected) { actionApproveDelegate.actionPerformed( // TODO: Does actionResult provide an ID for 2nd param here, // or should use a Random number? new ActionEvent(action, (int) new Date().getTime(), "SELECTED_FILE")); } }
private JButton createButton(final String name) { final JButton button = new JButton(getText(name)); button.setName(name); return button; }
protected void createAdd() { $objectMap.put("add", add = new JButton()); add.setName("add"); add.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__add")); }
protected void createAdd() { $objectMap.put("add", add = new JButton()); add.setName("add"); add.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__add")); }
@Override protected JButton createArrowButton() { JButton button = new ScrollbarUiButton(BasicArrowButton.SOUTH, UIDefaults.ARROW_COLOR); button.setName("ComboBox.arrowButton"); return button; } }
protected void createResetButton() { $objectMap.put("resetButton", resetButton = new JButton()); resetButton.setName("resetButton"); resetButton.setFocusable(false); resetButton.setFocusPainted(false); resetButton.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__resetButton")); }
protected void createBoutonConvertir() { $objectMap.put("boutonConvertir", boutonConvertir = new JButton()); boutonConvertir.setName("boutonConvertir"); boutonConvertir.setText(t("Convert")); boutonConvertir.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__boutonConvertir")); }
private void initializeMoveColorUpButton() { moveColorUp.setName("moveColorUp"); moveColorUp.setFont(BUTTON_FONT); moveColorUp.setText(MOVE_UP); moveColorUp.addActionListener(new ColorSwapper(-1)); moveColorUp.setVisible(index > 0); }
protected void createAddXslButton() { $objectMap.put("addXslButton", addXslButton = new JButton(Resource.getIcon("icone/more.gif"))); addXslButton.setName("addXslButton"); addXslButton.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__addXslButton")); }
private void initializeAddButton() { addNextColor.setName("addNextColor"); addNextColor.setFont(BUTTON_FONT); addNextColor.setText(ADD); addNextColor.addActionListener(new ColorAdder(index + 1)); }
protected void createResetSelection() { $objectMap.put("resetSelection", resetSelection = new JButton()); resetSelection.setName("resetSelection"); resetSelection.setFocusable(false); resetSelection.setToolTipText(t("beanlist.action.reset.tip")); resetSelection.setFocusPainted(false); resetSelection.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__resetSelection")); }
protected void createDefaultSize() { $objectMap.put("defaultSize", defaultSize = new JButton()); defaultSize.setName("defaultSize"); defaultSize.setFocusPainted(false); defaultSize.setFocusable(false); defaultSize.setToolTipText(t("fontsize.action.default.tip")); defaultSize.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__defaultSize")); }
private void initializeMoveColorDownButton() { moveColorDown.setName("moveColorDown"); moveColorDown.setFont(BUTTON_FONT); moveColorDown.setText(MOVE_DOWN); moveColorDown.addActionListener(new ColorSwapper(+1)); updateMoveColorDownButton(); }
private void addAddColorButton() { formlayout.appendRow(RowSpec.decode("CENTER:DEFAULT:NONE")); JButton addColor = new JButton(); addColor.addActionListener(new ColorAdder(0)); addColor.setName("addColor"); addColor.setFont(BUTTON_FONT); addColor.setText(ADD); panel.add(addColor, cc.xy(11, 1)); }