Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- JFrame frame = new JFrame() {
- public void paint(Graphics g) {
- //HEAD
- g.drawOval(100, 70, 90, 90);
- //EARS
- g.drawOval(100, 70, 20, 20);
- g.drawOval(170, 70, 20, 20);
- //EYES
- g.drawOval(120, 100, 15, 15);
- g.drawOval(122, 101, 10, 10);
- g.drawOval(150, 100, 15, 15);
- g.drawOval(152, 101, 10, 10);
- //NOSE
- g.drawOval(120, 120, 50, 40);
- g.drawOval(129, 120, 30, 15);
- }
- };
- frame.setSize(300, 300);
- frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
- frame.setVisible(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement