?? mainframe.java
字號:
package espc;import javax.swing.*;import java.awt.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class MainFrame extends JFrame { JToolBar jToolBar1 = new JToolBar(); JButton jButton1 = new JButton(); public MainFrame() { setSize(400,300); setVisible(true); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { MainFrame mainFrame = new MainFrame(); } private void jbInit() throws Exception { this.setTitle("歡迎使用e質量控制系統"); jButton1.setText("測試"); this.getContentPane().add(jToolBar1, BorderLayout.NORTH); jToolBar1.add(jButton1, null); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -