⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainmedlist.java

📁 医院管理系统 压缩包内有比较详尽的安装演示与功能介绍 大家可以放心下载
💻 JAVA
字号:
package src;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class MainMedList extends JFrame {

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			MainMedList frame = new MainMedList();
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public MainMedList() {
		 super("发药单查询");
		  setLocation(200,200);
		  setSize(650,400);
		  setResizable(false);
		  setBackground(Color.white);
		  setLayout(new BorderLayout());
		  //modify title image
			ImageIcon title=new ImageIcon("images/pill.gif");
			setIconImage(SwingResourceManager.getImage(MainMedList.class, "images/pill.gif"));
		  //add top image
		   JPanel jp0=new JPanel();
		   jp0.add(new JLabel(SwingResourceManager.getIcon(MainMedList.class, "images/index1.jpg")));
		   jp0.setBorder(BorderFactory.createEmptyBorder(0,1,0,1));
		   add("North",jp0);
		  //add two panel
		  JTabbedPane tabbedPane1=new JTabbedPane();
		  tabbedPane1.addTab("药品查询",new MedList());
		  tabbedPane1.addTab("药品搜索",new MedListSearchY());
		  add("Center",tabbedPane1);

		  setVisible(true);
	}

}

⌨️ 快捷键说明

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