public void actionPerformed (ActionEvent evt) { sampleTextPane.setText(EXTENDED_CHARS); resetCacheButton.doClick(); } });
public void actionPerformed (ActionEvent evt) { sampleTextPane.setText(NEHE_CHARS); resetCacheButton.doClick(); } });
public void actionPerformed (ActionEvent evt) { sampleTextPane.setText(NEHE_CHARS); resetCacheButton.doClick(); } });
public void actionPerformed (ActionEvent evt) { sampleTextPane.setText(EXTENDED_CHARS); resetCacheButton.doClick(); } });
public void keyTyped(KeyEvent ke) { if (ke.getKeyChar() == KeyEvent.VK_ENTER) { FIND_BUTTON.doClick(); } } };
public void mouseClicked (MouseEvent evt) { if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick(); } });
public void mouseClicked (MouseEvent evt) { if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick(); } });
public static void ripAlbumStatic(String url) { ripTextfield.setText(url.trim()); ripButton.doClick(); }
private void onKeywordEntered(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_onKeywordEntered final String keyword = newKeywordField.getText(); if (keyword == null || keyword.isEmpty() || keywordListModel.contains(keyword)) { return; } addButton.doClick(); }//GEN-LAST:event_onKeywordEntered
private void upgradeProgram() { if (!configurationPanel.isVisible()) { optionConfiguration.doClick(); } Runnable r = () -> UpdateUtils.updateProgramGUI(configUpdateLabel); new Thread(r).start(); }
public void create () { glClearColor(0, 0, 0, 0); glClearDepth(1); glDisable(GL_LIGHTING); batch = new SpriteBatch(); sampleNeheButton.doClick(); }
public void create () { glClearColor(0, 0, 0, 0); glClearDepth(1); glDisable(GL_LIGHTING); batch = new SpriteBatch(); sampleNeheButton.doClick(); }
public void actionPerformed (ActionEvent evt) { StringBuilder buffer = new StringBuilder(); buffer.append(NEHE_CHARS); buffer.append('\n'); int count = 0; for (int i = 33; i <= 255; i++) { if (buffer.indexOf(Character.toString((char)i)) != -1) continue; buffer.append((char)i); if (++count % 30 == 0) buffer.append('\n'); } sampleTextPane.setText(buffer.toString()); resetCacheButton.doClick(); } });
public void actionPerformed (ActionEvent evt) { StringBuilder buffer = new StringBuilder(); buffer.append(NEHE_CHARS); buffer.append('\n'); int count = 0; for (int i = 33; i <= 255; i++) { if (buffer.indexOf(Character.toString((char)i)) != -1) continue; buffer.append((char)i); if (++count % 30 == 0) buffer.append('\n'); } sampleTextPane.setText(buffer.toString()); resetCacheButton.doClick(); } });
public void setValue (RangedNumericValue value) { super.setValue(value); if(value == null) return; setValue(minSlider, value.getLowMin()); setValue(maxSlider, value.getLowMax()); //System.out.println("min "+value.getLowMin()+", max "+value.getLowMax()); if (minSlider.getValue() == maxSlider.getValue()) rangeButton.doClick(0); else if(!maxSlider.isVisible()) maxSlider.setVisible(true); } }
public void setValue (RangedNumericValue value) { super.setValue(value); if(value == null) return; setValue(minSlider, value.getLowMin()); setValue(maxSlider, value.getLowMax()); //System.out.println("min "+value.getLowMin()+", max "+value.getLowMax()); if (minSlider.getValue() == maxSlider.getValue()) rangeButton.doClick(0); else if(!maxSlider.isVisible()) maxSlider.setVisible(true); } }
public RangedNumericPanel (final RangedNumericValue value, String name, String description) { super(value, name, description); this.value = value; initializeComponents(); minSlider.setValue(value.getLowMin()); maxSlider.setValue(value.getLowMax()); minSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { value.setLowMin((Float)minSlider.getValue()); if (!maxSlider.isVisible()) value.setLowMax((Float)minSlider.getValue()); } }); maxSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { value.setLowMax((Float)maxSlider.getValue()); } }); rangeButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { boolean visible = !maxSlider.isVisible(); maxSlider.setVisible(visible); rangeButton.setText(visible ? "<" : ">"); Slider slider = visible ? maxSlider : minSlider; value.setLowMax((Float)slider.getValue()); } }); if (value.getLowMin() == value.getLowMax()) rangeButton.doClick(0); }
public RangedNumericPanel (final RangedNumericValue value, String name, String description) { super(value, name, description); this.value = value; initializeComponents(); minSlider.setValue(value.getLowMin()); maxSlider.setValue(value.getLowMax()); minSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { value.setLowMin((Float)minSlider.getValue()); if (!maxSlider.isVisible()) value.setLowMax((Float)minSlider.getValue()); } }); maxSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { value.setLowMax((Float)maxSlider.getValue()); } }); rangeButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { boolean visible = !maxSlider.isVisible(); maxSlider.setVisible(visible); rangeButton.setText(visible ? "<" : ">"); Slider slider = visible ? maxSlider : minSlider; value.setLowMax((Float)slider.getValue()); } }); if (value.getLowMin() == value.getLowMax()) rangeButton.doClick(0); }
@Override public void setValue(ScaledNumericValue value){ super.setValue(value); if(this.value == null)return; setValue(lowMinSlider, this.value.getLowMin()); setValue(lowMaxSlider, this.value.getLowMax()); setValue(highMinSlider, this.value.getHighMin()); setValue(highMaxSlider, this.value.getHighMax()); chart.setValues(this.value.getTimeline(), this.value.getScaling()); setValue(relativeCheckBox, this.value.isRelative()); if ( (this.value.getLowMin() == this.value.getLowMax() && lowMaxSlider.isVisible()) || (this.value.getLowMin() != this.value.getLowMax() && !lowMaxSlider.isVisible()) ) { lowRangeButton.doClick(0); } if ( ((this.value.getHighMin() == this.value.getHighMax()) && highMaxSlider.isVisible()) || ((this.value.getHighMin() != this.value.getHighMax()) && !highMaxSlider.isVisible()) ) highRangeButton.doClick(0); }
@Override public void setValue(ScaledNumericValue value){ super.setValue(value); if(this.value == null)return; setValue(lowMinSlider, this.value.getLowMin()); setValue(lowMaxSlider, this.value.getLowMax()); setValue(highMinSlider, this.value.getHighMin()); setValue(highMaxSlider, this.value.getHighMax()); chart.setValues(this.value.getTimeline(), this.value.getScaling()); setValue(relativeCheckBox, this.value.isRelative()); if ( (this.value.getLowMin() == this.value.getLowMax() && lowMaxSlider.isVisible()) || (this.value.getLowMin() != this.value.getLowMax() && !lowMaxSlider.isVisible()) ) { lowRangeButton.doClick(0); } if ( ((this.value.getHighMin() == this.value.getHighMax()) && highMaxSlider.isVisible()) || ((this.value.getHighMin() != this.value.getHighMax()) && !highMaxSlider.isVisible()) ) highRangeButton.doClick(0); }