|
发表于 2020-7-31 17:45:01
|
显示全部楼层
我在Eclipse里面新建一个Frame测试HS说的,
public static void main(String[] args)
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
//JFrame.setDefaultLookAndFeelDecorated(true);
try
{
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.setLookAndFeel(javax.swing.plaf.metal.MetalLookAndFeel);//添加的
}
catch .........
但是报错说
java.lang.Error: Unresolved compilation problem:
javax.swing.plaf.metal.MetalLookAndFeel cannot be resolved
请问这是怎么回事啊????谢谢先! |
|