对import了解不深
package MainFrame;import java.awt.*;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.prefs.Preferences;
import static java.awt.BorderLayout.*;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
public class JXCFrame {
private JDesktopPane desktopPane;
private JFrame frame;
private JLabel backLable;
private Preferences preferences;
private Map<String,JInternalFrame>ifs=new HashMap
<String,JInternalFrame>();
public JXCFrame(){
frame=new JFrame("企业进销存管系统");
frame.addComponentListener(new FrameListener());
frame.getContentPane().setLocale(new BorderLayout);
}
}
代码还没写完,是网上找的项目实例,但是只要类代码,没有import项,黄色的是我加的,请问这里的错误原因是什么?