📄 f08de90ce94f001d1594abca140770d0
字号:
import java .awt.*;
import java.awt.event.*;
import javax.swing.*;
class searchWindow2 extends JFrame implements ActionListener
{ Button button1,button2,button3,button4,button5;
TextArea text;
searchWindow2(String s)
{ super(s);
setLayout(new FlowLayout());
button1=new Button("大学英语");
button2=new Button("数据结构");
button3=new Button("管理学");
button4=new Button("专业英语");
button5=new Button("确定");
text=new TextArea(10,15);
text.setEditable(false);
add(button1);
add(button2);
add(button3);
add(button4);
add(button5);
add(text);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
setBounds(120,120,300,300);
setVisible(true);
validate();
}
public void actionPerformed(ActionEvent e)
{
}
}
/*public class searchMarch
{ public static void main(String args[])
{ searchWindow2 win=new searchWindow2("分数查询");
}
}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -