Car GUI - Java Pt. 2

Chris Chen
import java.awt.*;
import javax.swing.*;

public class CarRunner {

public static void main(String[] args){

JFrame frame = new JFrame();
frame.setSize(100,120);
frame.setTitle("Car");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(new CarGui());
frame.setVisible(true);

}

}

Just copy and paste the code and always make sure to run either the file named "driver.java" or "runner.java"

Published by Chris Chen

Chris is currently attending the University of California, Berkeley seeking an undergraduate's degree in Electrical Engineering Computer Science. He enjoys playing basketball, practicing kendo, hanging out w...  View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.