该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
super(arg0);
// TODO Auto-generated constructor stub
initialize();
}
/**
* @param arg0
* @throws HeadlessException
*/
public Notepad(String arg0) throws HeadlessException {
super(arg0);
// TODO Auto-generated constructor stub
initialize();
}
/**
* @param arg0
* @param arg1
*/
public Notepad(String arg0, GraphicsConfiguration arg1) {
super(arg0, arg1);
// TODO Auto-generated constructor stub
initialize();
}
/**
* This method initializes jJMenuBar
*
* @return javax.swing.JMenuBar
*/
private JMenuBar getJJMenuBar() {
if (jJMenuBar == null) {
jJMenuBar = new JMenuBar();
jJMenuBar.setPreferredSize(new Dimension(0, 24));
jJMenuBar.setBackground(new Color(215, 235, 246));
jJMenuBar.setForeground(SystemColor.control);
jJMenuBar.setFont(new Font("\u5b8b\u4f53", Font.PLAIN, 12));
jJMenuBar.add(getFileMenu());
jJMenuBar.add(getEditorMenu());
jJMenuBar.add(getFormatjMenu());
jJMenuBar.add(getHelpMenu());
}
return jJMenuBar;
}
/**
* This method initializes fileMenu
*
* @return javax.swing.JMenu
*/
private JMenu getFileMenu() {
if (fileMenu == null) {
fileMenu = new JMenu();
fileMenu.setSize(new Dimension(30, 30));
fileMenu.setName("");
fileMenu.setMnemonic(KeyEvent.VK_UNDEFINED);
fileMenu.setText("文件");
fileMenu.setFont(new Font("\u5b8b\u4f53", Font.PLAIN, 12));
fileMenu.setPreferredSize(new Dimension(35, 5));
fileMenu.add(getNewMenuItem());
fileMenu.add(getOpenMenuItem());
fileMenu.add(getStoreMenuItem());
fileMenu.add(getRestoreMenuItem());
fileMenu.addSeparator();
fileMenu.add(getExitMenu());
}
return fileMenu;
}
/**
* This method initializes editorMenu
*
* @return javax.swing.JMenu
*/
private JMenu getEditorMenu() {
if (editorMenu == null) {
editorMenu = new JMenu();
editorMenu.setPreferredSize(new Dimension(35, 5));
editorMenu.setFont(new Font("\u5b8b\u4f53", Font.PLAIN, 12));
editorMenu.setText("编辑");
editorMenu.add(getCopyMenuItem());
editorMenu.add(getPasteMenuItem());