22 lines
481 B
Java
22 lines
481 B
Java
package org.bootcamp.TrafficLights;
|
|
|
|
import java.awt.Color;
|
|
import java.awt.Dimension;
|
|
import java.awt.GridLayout;
|
|
import javax.swing.JFrame;
|
|
|
|
/** Sign */
|
|
public class Sign extends JFrame {
|
|
Light TestLight;
|
|
|
|
Sign() {
|
|
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
this.setLayout(new GridLayout(4, 1));
|
|
this.setPreferredSize(new Dimension(300, 300));
|
|
this.setLocationRelativeTo(null);
|
|
this.setVisible(true);
|
|
this.setBackground(Color.BLACK);
|
|
}
|
|
}
|