⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myclientmenubar.java

📁 Java实现的图书管理系统
💻 JAVA
字号:
/* * MyClientMenuBar.java * * Created on 2003年5月7日, 下午9:34 *//** * * @author  administrator */import java.awt.*;import javax.swing.*;import java.awt.event.*;import javax.swing.event.*;class MyClientMenuBar extends JMenuBar {    MyClientFrame parent;        JMenuItem[] file = {    // No menu shortcut:    new JMenuItem("L登录",KeyEvent.VK_L),        // Adding a menu shortcut is very simple:    new JMenuItem("E退出",KeyEvent.VK_E)    };    /** Creates a new instance of MyClientMenuBar */    public MyClientMenuBar(MyClientFrame frame)     {        parent=frame;        JMenu f=new JMenu("File");        file[0].addActionListener(parent.menuAL);        f.add(file[0]);        f.addSeparator();        file[1].addActionListener(parent.menuAL);        f.add(file[1]);                             this.add(f);    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -