【发布时间】:2014-05-26 01:05:22
【问题描述】:
我收到来自 IDE 的警告说,
JFrame 类型的静态方法 setDefaultLookAndFeelDecorated(boolean) 应该以静态方式访问
我想知道哪个更正确:
从声明类(JFrame.setDefaultLookAndFeelDecorated(true);)中引用,
还是继承类 (MyJFrame.setDefaultLookAndFeelDecorated(true);)?
【问题讨论】:
标签: java eclipse oop inheritance