javax.swing.plaf.basic.BasicButtonListener Java Examples

The following examples show how to use javax.swing.plaf.basic.BasicButtonListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlatButtonUI.java    From FlatLaf with Apache License 2.0 5 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener( AbstractButton b ) {
	return new BasicButtonListener( b ) {
		@Override
		public void propertyChange( PropertyChangeEvent e ) {
			super.propertyChange( e );
			FlatButtonUI.this.propertyChange( b, e );
		}
	};
}
 
Example #2
Source File: DarkToggleButtonUI.java    From darklaf with MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(final AbstractButton b) {
    return new DarkToggleButtonListener(b, this);
}
 
Example #3
Source File: DarkButtonUI.java    From darklaf with MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(final AbstractButton b) {
    return new DarkButtonListener(b, this);
}
 
Example #4
Source File: SubstanceButtonUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return null;
}
 
Example #5
Source File: SubstanceRadioButtonUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return new RolloverButtonListener(b, this.stateTransitionTracker);
}
 
Example #6
Source File: SubstanceCheckBoxUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return new RolloverButtonListener(b, this.stateTransitionTracker);
}
 
Example #7
Source File: SubstanceToggleButtonUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return null;
}
 
Example #8
Source File: MaterialButtonUI.java    From material-ui-swing with MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	b.addPropertyChangeListener(enableButton);
	return super.createButtonListener(b);
}
 
Example #9
Source File: ButtonUI.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}
 
Example #10
Source File: ToggleButtonUI.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ToggleButtonListener(b);
}
 
Example #11
Source File: ToolbarButtonUI.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}
 
Example #12
Source File: ExtensionButtonUI.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}