SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import javax.swing.JFrame;
  2.  
  3. public class CarViewer
  4. {
  5.     public static void main()
  6.     {
  7.         JFrame frame = new JFrame();
  8.         frame.setSize(300,400);
  9.         frame.setTitle("Two cars");
  10.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  11.        
  12.         CarComponent component = new CarComponent();
  13.         frame.add(component);
  14.         frame.setVisible(true);
  15.     }
  16. }
RAW Paste Data
Top