diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/UIAction.java b/core/src/main/java/com/github/weisj/darklaf/ui/UIAction.java
index addd74c4..0aa2e0ac 100644
--- a/core/src/main/java/com/github/weisj/darklaf/ui/UIAction.java
+++ b/core/src/main/java/com/github/weisj/darklaf/ui/UIAction.java
@@ -43,33 +43,24 @@ public abstract class UIAction implements Action {
return null;
}
+ @Override
+ public final boolean isEnabled() {
+ return true;
+ }
+
// UIAction is not mutable, this does nothing.
+ @Override
public void putValue(String key, Object value) {}
// UIAction is not mutable, this does nothing.
- public void setEnabled(boolean b) {}
-
- /**
- * Cover method for isEnabled(null)
.
- */
- public final boolean isEnabled() {
- return accept(null);
- }
-
- /**
- * Subclasses that need to conditionalize the enabled state should override this. Be aware that
- * sender
may be null.
- *
- * @param sender Widget enabled state is being asked for, may be null.
- */
@Override
- public boolean accept(Object sender) {
- return true;
- }
+ public void setEnabled(boolean b) {}
// UIAction is not mutable, this does nothing.
+ @Override
public void addPropertyChangeListener(PropertyChangeListener listener) {}
// UIAction is not mutable, this does nothing.
+ @Override
public void removePropertyChangeListener(PropertyChangeListener listener) {}
}