Why is JButton.enable deprecated?
deprecated, java, jbutton, swing
Solution
From the JDK documentation:
Deprecated. As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean)
So call the `setEnabled(true)` method instead.
Problem
Why is Button.enable deprecated? I need to use the method of my button but it's deprecated, so it has no effect. How can I fix it? Are there any other alternatives?