public RaceGUI(String appName){
  UIManager.put("swing.boldMetal",Boolean.FALSE);
  JFrame f=new JFrame(appName);
  f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  f.setLayout(new BorderLayout());
  track=new TrackView();
  f.add(track,BorderLayout.CENTER);
  controlPanel=new RaceControlPanel();
  f.add(controlPanel,BorderLayout.SOUTH);
  f.pack();
  f.setVisible(true);
}

public RaceGUI ( String appName ) { UIManager . put ( "swing.boldMetal" , Boolean . FALSE ) ; JFrame f = new JFrame ( appName ) ; f . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; f . setLayout ( new BorderLayout ( ) ) ; track = new TrackView ( ) ; f . add ( track , BorderLayout . CENTER ) ; controlPanel = new RaceControlPanel ( ) ; f . add ( controlPanel , BorderLayout . SOUTH ) ; f . pack ( ) ; f . setVisible ( true ) ; }
creates a new instance of racegui
