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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With