mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
Table: add disabled icon for boolean renderer (issue #1008)
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
This commit is contained in:
@@ -39,6 +39,7 @@ import java.beans.PropertyChangeListener;
|
||||
import java.util.Map;
|
||||
import javax.swing.Action;
|
||||
import javax.swing.ActionMap;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTable;
|
||||
@@ -989,12 +990,14 @@ public class FlatTableUI
|
||||
|
||||
FlatBooleanRenderer() {
|
||||
setHorizontalAlignment( SwingConstants.CENTER );
|
||||
setIcon( new FlatCheckBoxIcon() {
|
||||
Icon icon = new FlatCheckBoxIcon() {
|
||||
@Override
|
||||
protected boolean isSelected( Component c ) {
|
||||
return selected;
|
||||
}
|
||||
} );
|
||||
};
|
||||
setIcon( icon );
|
||||
setDisabledIcon( icon );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user