Java弹窗测试小程序.txt

时间:2023-08-06 06:37:02
【文件属性】:

文件名称:Java弹窗测试小程序.txt

文件大小:2KB

文件格式:TXT

更新时间:2023-08-06 06:37:02

java 弹窗

package test; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class tanchuang { private JFrame frame = new JFrame("Java弹窗测试"); private JPanel p = new JPanel(); private JButton btn1 = new JButton("弹出第一个窗口"); private JButton btn2 = new JButton("弹出第二个窗口"); private JFrame f1; private JFrame f2;


网友评论