该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
P2.java
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class P2 extends JFrame implements ActionListener {
JButton jb1,jb2,jb3;
JLabel jl1,jl2;
JTextField t1,t2;
JPanel p;
String s;
P2(){
super("查找");
this.setDefaultCloseOperation(2);
init();
this.setLayout(new FlowLayout());
this.setVisible(true) ;
this.setSize(500,350) ;
this.setLocation(300,200) ;
this.setFocusable(true);
this.validate();
jb1.addActionListener(this);
jb2.addActionListener(this);
}
void init(){
p=new JPanel(new GridLayout(2,3,5,5));
jl1=new JLabel("查找内容(F):");
jl2=new JLabel("替换