📄 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 + -