?? guanliyuanjiemian.java
字號:
package don;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class guanliyuanjiemian implements ActionListener
{
JFrame fgly = new JFrame("管理員");
JPanel p1=new JPanel();
JPanel p2=new JPanel();
JButton b0=new JButton("查詢信息");
JButton b1=new JButton("查詢成績");
JButton b2=new JButton("更新信息");
JButton b3=new JButton("更新成績");
JButton b4=new JButton("修改密碼");
public guanliyuanjiemian()
{
fgly.setResizable(false);
// fgly.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fgly.setSize(600, 450);
fgly.setLayout(null);
ImageIcon icon=new ImageIcon("men.jpg");
JLabel lt=new JLabel(icon);
p1.setBounds(0, 0, 600, 30);
p2.setBounds(0, 30, 600, 420);;
b0.setBounds(0, 0, 100, 30);
b1.setBounds(31, 0, 100, 30);
b2.setBounds(61, 0, 100, 30);
b3.setBounds(91, 0, 100, 30);
b4.setBounds(121, 0, 100, 30);
fgly.add(p1);
fgly.add(p2);
p1.add(b0);
p1.add(b1);
p1.add(b2);
p1.add(b3);
p1.add(b4);
p2.add(lt);
fgly.setVisible(true);
b0.addActionListener(this);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
}
public static void main(String[] args)
{
new guanliyuanjiemian();
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b0)
{
gchaxunxinxi caxun=new gchaxunxinxi();
caxun.setVisible(true);
}
if(e.getSource()==b1)
{
Chengjicaxun caxun1=new Chengjicaxun();
caxun1.setVisible(true);
}
else if(e.getSource()==b2)
{
new gengxinxinxi();
}
else if(e.getSource()==b3)
{
new gengxinchengji();
}
else if(e.getSource()==b4)
{
new guanligaimi();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -