📄 master.java
字号:
package socket1;
import java.awt.*;
import java.awt.event.*;
public class master extends Frame implements ActionListener,WindowListener {
String get;
String set;
Button button1=new Button("1");
Button button2=new Button("2");
Button button3=new Button("3");
Button button4=new Button("4");
public master()
{
//Frame frame=new Frame("文件传输");
//s("文件传输");
//button3.addActionListener(new b3());
setVisible(true);
setSize(600,700);
setLayout(new FlowLayout(FlowLayout.LEFT));
//addWindowListener(new master());
add(button1);
add(button2);
add(button3);
add(button4);
//button1.addActionListener(new b1());
//button2.addActionListener(new b2());
//button4.addActionListener(new b4());
}
public void windowClosing(WindowEvent e)
{
System.exit(1);
}
public void windowClosed(WindowEvent e){
}
public void windowDeactivated(WindowEvent e){
}
public void windowDeiconified(WindowEvent e){
}
public void windowIconified(WindowEvent e){
}
public void windowOpened(WindowEvent e){
}
public class b1 implements ActionListener{
public void actionPerformed(ActionEvent e){
}
}
public class b2 implements ActionListener{
public void actionPerformed(ActionEvent e){
}
}
/*public class b3 implements ActionListener{
public void actionPerformed(ActionEvent e){
FileDialog dialog=new FileDialog(s, "w", 0);
dialog.setVisible(true);
get=dialog.getDirectory();
new ClientTest(get);
}
}*/
/*public class b4 implements ActionListener{
public void actionPerformed(ActionEvent e){
FileDialog dialog=new FileDialog(frame, "s", 0);
dialog.setVisible(true);
set=dialog.getFile();
}
}*/
public void windowActivated(WindowEvent e) {
}
public void actionPerformed(ActionEvent e) {
}
public static void main(String[] arg){
master t=new master();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -