CI 2019 von Daniel, Eugen und Michael
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
834 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. import javax.swing.*;
  2. public class Main {
  3. //Variablen GUI
  4. JFrame fr = null;
  5. JMenuBar jmb = null;
  6. JMenu jm = null;
  7. JPanel contantPane = null;
  8. JLabel label = null;
  9. //Konstruktor Gui
  10. public Main(){
  11. this.fr = new JFrame("Coutinius Integration");
  12. this.fr.setSize(666,900);
  13. this.jmb = new JMenuBar();
  14. this.fr.setJMenuBar(jmb);
  15. this.jm = new JMenu("File");
  16. this.jmb.add(jm);
  17. this.contantPane = new JPanel();
  18. fr.setContentPane(contantPane);
  19. contantPane.add(new JLabel("Beispiel JLabel"));
  20. // Wir lassen unseren Frame anzeigen
  21. contantPane.setVisible(true);
  22. fr.setVisible(true);
  23. }
  24. public static void main(String[] args) {
  25. System.out.println("Hello World!");
  26. Main mn = new Main();
  27. }
  28. }