Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- public class FaceViewer
- {
- public static void main(String[] args)
- {
- JFrame frame = new JFrame();
- frame.setSize(150, 250);
- frame.setTitle("Una faccia simpatica");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- FaceComponent myFace = new FaceComponent();
- frame.add(myFace);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement