From 2c94ee0c7eccbd30f85b7ac5896b6d13112d3d28 Mon Sep 17 00:00:00 2001 From: Komlovski Date: Fri, 5 Jul 2019 19:55:54 +0200 Subject: [PATCH] =?UTF-8?q?File=20in=20Men=C3=BC=20umgewandelt.=20Info=20h?= =?UTF-8?q?inzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 2 +- src/Main.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 0548357..e0844bc 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/Main.java b/src/Main.java index 4b45221..1dc1883 100644 --- a/src/Main.java +++ b/src/Main.java @@ -7,6 +7,7 @@ public class Main { JFrame fr = null; JMenuBar jmb = null; JMenu jm = null; + JMenu jm1 = null; JPanel contantPane = null; JLabel label = null; JMenuItem jmI = null; @@ -17,12 +18,13 @@ public class Main { this.jmb = new JMenuBar(); this.fr.setJMenuBar(jmb); - this.jm = new JMenu("File"); + this.jm = new JMenu("Menu"); this.jmb.add(jm); this.jmI = new JMenuItem("Exit"); this.jm.add(jmI); this.jmI.addActionListener(new ActionListener1()); - + this.jm1 = new JMenu("Info"); + this.jmb.add(jm1); this.contantPane = new JPanel(); this.fr.setContentPane(contantPane);