?? crmswindow.java
字號:
package crms.ui;import javax.swing.*;import java.awt.*;/** CRMS Window interface. The design requires a few steps to get a window to be displayed. * * <ol><li>Create the window object requested * <li>Set any properties required through custom set functions * <li>Call the display() method to make the window appear * </ol> */public abstract class CRMSWindow extends JFrame { public void closeWindow() { this.dispose(); } public void center() { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); setLocation((d.width - getSize().width) / 2, (d.height - getSize().height) / 2); } /** Display this window. */ public abstract void display();}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -