|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package garten;
-
- import garten.model.Gaertner;
- import garten.view.Fenster;
- import garten.view.FlaecheBeet;
- import garten.view.FlaechePflanzen;
- import garten.view.FlaecheWeg;
- import java.awt.Color;
- import java.awt.Container;
- import javax.swing.OverlayLayout;
-
- /**
- * Builder Class
- * @author Jan
- */
- public class start
- {
- public start()
- {
-
- Color hintergrund = new Color(34, 139, 34);
- Fenster view = new Fenster();
- FlaecheBeet flbeet = new FlaecheBeet();
- FlaecheWeg flweg = new FlaecheWeg();
- FlaechePflanzen flpflanzen = new FlaechePflanzen();
- flpflanzen.setOpaque(false);
- flweg.setOpaque(false);
- flbeet.setOpaque(false);
-
-
- Container hauptkiste = view.getContentPane();
- hauptkiste.setLayout(new OverlayLayout(hauptkiste));
- hauptkiste.setBackground(hintergrund);
- hauptkiste.add(flpflanzen);
- hauptkiste.add(flbeet);
- hauptkiste.add(flweg);
-
- Gaertner ga = new Gaertner(view,flbeet,flweg,flpflanzen);
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- new start();
- }
- }
|