Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- public class CarViewer
- {
- public static void main()
- {
- JFrame frame = new JFrame();
- frame.setSize(300,400);
- frame.setTitle("Two cars");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- CarComponent component = new CarComponent();
- frame.add(component);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement