display.java
来自「飞机订票系统(含界面」· Java 代码 · 共 35 行
JAVA
35 行
package AirT;
import java.awt.Color;
import java.awt.Container;
import javax.swing.ImageIcon;
import javax.swing.JApplet;
import javax.swing.JLabel;
import javax.swing.JTabbedPane;
public class Display extends JApplet{
/**
*
*/
private static final long serialVersionUID = 8022202292744872809L;
Container ctp = getContentPane();
JTabbedPane tp = new JTabbedPane();
JLabel picture;
public void init()
{
ImageIcon we = new ImageIcon("img\\we.gif");
picture = new JLabel(we);
setBackground(Color.white);
tp.addTab("您好", new HiPanel());
tp.addTab("查询", new QueryPanel());
tp.addTab("订票", new BespeakPanel());
tp.addTab("退票", new RetticPanel());
tp.addTab("录入", new RecordPanel());
//tp.addTab("删改", new DelChaPanel());
ctp.add(tp);
//ctp.add(picture);
setSize(650,465);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?