📄 doctoradvice.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -