From ca0770930892214ebd8690c8507b7664a7469299 Mon Sep 17 00:00:00 2001 From: 13531448177 <1792873095@qq.com> Date: Thu, 10 Jun 2021 22:07:24 +0800 Subject: [PATCH] add 0307.2. --- 0307.2 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 0307.2 diff --git a/0307.2 b/0307.2 new file mode 100644 index 0000000..8eff883 --- /dev/null +++ b/0307.2 @@ -0,0 +1,27 @@ +package java2020spring; + + + import javax.swing.*; + + import java.awt.*; + + public class LookHelp extends JFrame{ + + public LookHelp(){ + super("查看帮助"); + this.setSize(500, 300); + this.setLocation(200,300); + this.setResizable(false); + this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); + this.setVisible(true); + + Container c = this.getContentPane(); + c.setLayout(new GridLayout(5,0)); + + JLabel label1 = new JLabel("1、菜单栏的菜单项可点击来选择功能。"); + JLabel label2 = new JLabel("2、“编辑”里的剪切、复制、粘贴可用快捷键Ctrl + x、Ctrl + c、Ctrl + v实现。"); + JLabel label3 = new JLabel("3、“格式”里的“自动换行”需要点中才可进行自动换行。"); + + c.add(label1);c.add(label2);c.add(label3); + } + } -- Gitee