?? student_look.java
字號(hào):
//學(xué)生查管理系統(tǒng)
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class student_look extends JFrame implements ActionListener
{
JButton b1;
JButton b2;
JButton b3;
public student_look()
{
super("學(xué)生查看管理系統(tǒng)");
b1=new JButton("學(xué)生查詢");
b2=new JButton("修改密碼");
b3=new JButton(" 退出 ");
setLayout(new FlowLayout());
add(b1);
add(b2);
add(b3);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
}
public void actionPerformed(ActionEvent et)
{
if (et.getSource() == b1){
dispose();
student_look1 x=new student_look1();
x.setVisible(true);
x.setLocation(300,300);
x.setSize(350,500);
}
else if(et.getSource()==b2){
dispose();
student_look2 x=new student_look2();
x.setVisible(true);
x.setLocation(300,300);
x.setSize(350,500);
}
else{
dispose();
}
}
public static void main(String args[])
{ student_look x1=new student_look();
x1.setVisible(true);
x1.setLocation(300,300);
x1.setSize(600,600);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -