Browse Source

File in Menü umgewandelt.

Info hinzugefügt.
new_repo
Komlovski 5 years ago
parent
commit
2c94ee0c7e
  1. 2
      .idea/misc.xml
  2. 6
      src/Main.java

2
.idea/misc.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

6
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);

Loading…
Cancel
Save