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.

Fenster.java 995B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package garten.view;
  7. import javax.swing.JFrame;
  8. /**
  9. *
  10. * @author nobody
  11. */
  12. public class Fenster extends JFrame
  13. {
  14. public Fenster()
  15. {
  16. /*
  17. JPopupMenu popup = new JPopupMenu();
  18. JMenuItem menuItem = new JMenuItem("Hallo");
  19. JRadioButtonMenuItem radioButtonItem = new JRadioButtonMenuItem("Ich bin ein JRadionButtonMenuItem",true);
  20. popup.add(menuItem);
  21. popup.add(radioButtonItem);
  22. popup.setLocation(200,200);
  23. popup.setVisible(true);
  24. hauptkiste.add(popup);
  25. JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  26. popup.setVisible(true);
  27. */
  28. this.setTitle("Garten von Paul und Jan");
  29. this.pack();
  30. this.setDefaultCloseOperation(EXIT_ON_CLOSE);
  31. this.setSize(900, 900);
  32. this.setVisible(true);
  33. }
  34. public void paintComponent()
  35. {
  36. }
  37. }