Java Code Examples for javax.swing.plaf.basic.BasicButtonListener

The following examples show how to use javax.swing.plaf.basic.BasicButtonListener. These examples are extracted from open source projects. 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 Project: FlatLaf   Source File: FlatButtonUI.java    License: 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 Project: darklaf   Source File: DarkToggleButtonUI.java    License: MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(final AbstractButton b) {
    return new DarkToggleButtonListener(b, this);
}
 
Example 3
Source Project: darklaf   Source File: DarkButtonUI.java    License: MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(final AbstractButton b) {
    return new DarkButtonListener(b, this);
}
 
Example 4
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return null;
}
 
Example 5
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return new RolloverButtonListener(b, this.stateTransitionTracker);
}
 
Example 6
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
    return new RolloverButtonListener(b, this.stateTransitionTracker);
}
 
Example 7
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return null;
}
 
Example 8
Source Project: material-ui-swing   Source File: MaterialButtonUI.java    License: MIT License 4 votes vote down vote up
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	b.addPropertyChangeListener(enableButton);
	return super.createButtonListener(b);
}
 
Example 9
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}
 
Example 10
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ToggleButtonListener(b);
}
 
Example 11
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}
 
Example 12
@Override
protected BasicButtonListener createButtonListener(AbstractButton b) {
	return new ButtonListener(b);
}