本文整理了Java中javax.swing.JButton.doClick()
方法的一些代码示例,展示了JButton.doClick()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.doClick()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:doClick
暂无
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent evt) {
sampleTextPane.setText(EXTENDED_CHARS);
resetCacheButton.doClick();
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent evt) {
sampleTextPane.setText(NEHE_CHARS);
resetCacheButton.doClick();
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent evt) {
sampleTextPane.setText(NEHE_CHARS);
resetCacheButton.doClick();
}
});
代码示例来源:origin: libgdx/libgdx
public void actionPerformed (ActionEvent evt) {
sampleTextPane.setText(EXTENDED_CHARS);
resetCacheButton.doClick();
}
});
代码示例来源:origin: groovy/groovy-core
public void keyTyped(KeyEvent ke) {
if (ke.getKeyChar() == KeyEvent.VK_ENTER) {
FIND_BUTTON.doClick();
}
}
};
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent evt) {
if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick();
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent evt) {
if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick();
}
});
代码示例来源:origin: RipMeApp/ripme
public static void ripAlbumStatic(String url) {
ripTextfield.setText(url.trim());
ripButton.doClick();
}
代码示例来源:origin: jersey/jersey
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
代码示例来源:origin: RipMeApp/ripme
private void upgradeProgram() {
if (!configurationPanel.isVisible()) {
optionConfiguration.doClick();
}
Runnable r = () -> UpdateUtils.updateProgramGUI(configUpdateLabel);
new Thread(r).start();
}
代码示例来源:origin: libgdx/libgdx
public void create () {
glClearColor(0, 0, 0, 0);
glClearDepth(1);
glDisable(GL_LIGHTING);
batch = new SpriteBatch();
sampleNeheButton.doClick();
}
代码示例来源:origin: libgdx/libgdx
public void create () {
glClearColor(0, 0, 0, 0);
glClearDepth(1);
glDisable(GL_LIGHTING);
batch = new SpriteBatch();
sampleNeheButton.doClick();
}
代码示例来源:origin: libgdx/libgdx
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();
}
});
代码示例来源:origin: libgdx/libgdx
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();
}
});
代码示例来源:origin: libgdx/libgdx
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);
}
}
代码示例来源:origin: libgdx/libgdx
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);
}
}
代码示例来源:origin: libgdx/libgdx
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);
}
代码示例来源:origin: libgdx/libgdx
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);
}
代码示例来源:origin: libgdx/libgdx
@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);
}
代码示例来源:origin: libgdx/libgdx
@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);
}
内容来源于网络,如有侵权,请联系作者删除!