TrafficLight - -public static void main(String args JFrame...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Author: Lewis/Loftus // // Solution to Programming Project 7.8 //******************************************************************** / import javax.swing.*; i public class TrafficLight { //----------------------------------------------------------------- // Creates and presents the program frame.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { JFrame lightFrame = new JFrame ("Traffic Light"); lightFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); lightFrame.getContentPane().add (new TrafficControlPanel()); lightFrame.setSize(160,250); lightFrame.setVisible(true); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online