1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- * 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 grafik2d;
-
- import java.awt.Color;
- import java.awt.Container;
- import javax.swing.JFrame;
- import javax.swing.OverlayLayout;
- import javax.swing.WindowConstants;
-
- /**
- * Builder Class
- * @author le
- */
- public class Start
- {
- public int zeitinput = 12;
- public Start()
- {
- JFrame frm = new JFrame();
- Container c = frm.getContentPane();
- c.setLayout(new OverlayLayout(c));
- c.setBackground(Color.WHITE);
- frm.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
- Gerade leinwand = new Gerade(10,zeitinput);
- c.add(leinwand);
- leinwand.start();
-
-
-
- /*
- for (int i = 0; i < 100; i++)
- {
- double zufall = Math.random();
- long schlafzeit = (long)(1 + 100*zufall);
- Kreis leinwand = new Kreis(schlafzeit);
- leinwand.setOpaque(false);
- c.add(leinwand);
- leinwand.start();
- }
- */
-
- frm.setSize(600, 400);
- frm.setVisible(true);
-
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- new Start();
- }
- }
|