我使用jdk1.4.2在JBuilder9编译swing程序的时候出现如下类警告:
"MulThreadCrawlerFrame.java": enable() in javax.swing.JComponent has been deprecated at line 614, column 41
"MulThreadCrawlerFrame.java": disable() in javax.swing.JComponent has been deprecated at line 650, column 58
There have been deprecation warnings. Please consult the documentation for a better alternative.
其意思就是这些函数可能无效,他们只是为了向前兼容而存在,在新版本中有新的函数替代他们。如以上两个被setEnable(boolean )替代。同理,遇到同类的问题都可以找找其他替代方法。