crmswindow.java

来自「CRMS客户关系管理系统(JAVA版),这是一个客户关系管理系统。」· Java 代码 · 共 29 行

JAVA
29
字号
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 + =
减小字号Ctrl + -
显示快捷键?