From 39077d047dc28e7e7c09d92d8dc70e8707b05e38 Mon Sep 17 00:00:00 2001 From: 13531448177 <1792873095@qq.com> Date: Thu, 10 Jun 2021 22:09:03 +0800 Subject: [PATCH] add 0307.3. --- 0307.3 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0307.3 diff --git a/0307.3 b/0307.3 new file mode 100644 index 0000000..ba4685b --- /dev/null +++ b/0307.3 @@ -0,0 +1,23 @@ +package java2020spring; + + + + + import javax.swing.*; + + public class AboutBook extends JFrame{ + public AboutBook(){ + super("关于记事本"); + this.setSize(220, 100); + this.setLocation(200,300); + this.setResizable(false); + this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); + this.setVisible(true); + + JPanel panel = new JPanel(); + JLabel label = new JLabel("版本2021H2"); + + panel.add(label); + this.add(panel); + } + } -- Gitee