diff --git a/0307.3 b/0307.3 new file mode 100644 index 0000000000000000000000000000000000000000..ba4685bf56a8ca8b47bd48d77fb8006d0deafa9d --- /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); + } + }