From 1e023ee5b2aaa66e93f4e24c3f3730c9a42d439d Mon Sep 17 00:00:00 2001 From: 13531448177 <1792873095@qq.com> Date: Thu, 10 Jun 2021 17:18:39 +0800 Subject: [PATCH] add gsj. --- gsj | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gsj diff --git a/gsj b/gsj new file mode 100644 index 0000000..ba4685b --- /dev/null +++ b/gsj @@ -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