doctoradvice.java

来自「一个很好的医院管理软件」· Java 代码 · 共 43 行

JAVA
43
字号
package src;

import java.awt.BorderLayout;
import src.DoctorAdviceNew;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import javax.swing.WindowConstants;

public class DoctorAdvice extends JFrame {

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			DoctorAdvice.setDefaultLookAndFeelDecorated(true);
			DoctorAdvice frame = new DoctorAdvice();
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public DoctorAdvice() {
		super();
		setIconImage(SwingResourceManager.getImage(DoctorAdvice.class, "images/pill.gif"));
		setTitle("医嘱处理");
		setBounds(100, 100, 500, 375);

		final JTabbedPane tabbedPane = new JTabbedPane();
		tabbedPane.addTab("新建医嘱", new DoctorAdviceNew());
		tabbedPane.addTab("查询医嘱", new DoctorAdviceSearch());
		tabbedPane.addTab("停止医嘱", new DoctorAdviceStop());
		getContentPane().add(tabbedPane, BorderLayout.CENTER);
		//
	}

}

⌨️ 快捷键说明

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