为什么不推荐使用 Button.enable?我需要使用我的按钮的方法,但它已被弃用,因此它没有任何效果。
我该如何解决?还有其他选择吗?
最佳答案
Deprecated. As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean)
因此请改为调用setEnabled(true)
方法。
关于java - 为什么不推荐使用 JButton.enable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13721378/