SlideShare a Scribd company logo
1 of 1
Download to read offline
Pedro Antonio González Martínez

                           Código
                                                                  g.setColor(new Color(153, 50, 000));
/*                                                                g.fillRect(400, 220, 100, 180);
 * To change this template, choose Tools | Templates
 * and open the template in the editor.                           g.setColor(Color.BLACK);
 */                                                               g.fillOval(470, 300, 20, 20);
package casapedrito;
                                                                  int x = 700;
import java.awt.*;                                                int y = 500;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;                            }

class Casita extends Frame {                                  public void mostrar() {
                                                                setVisible(true);
  Casita(int ancho, int alto) {
    setSize(ancho, alto);                                     }
    setLocationRelativeTo(null);
    setResizable(false);                                      public static void main(String args[]) {
                                                                Casita ver = new Casita(800, 650);
      addWindowListener(new WindowAdapter() {                   ver.mostrar();;
                                                              }
            public void windowsClosing(WindowEvent e) {   }
              System.exit(0);
            }                                                                           Imagen
            public void windowClosed(WindowEvent e) {
              System.exit(0);
            }
      });

  }

  public void paint(Graphics g) {

      g.setColor(new Color(200, 255, 255));
      g.fillRect(0, 10, 1800, 600);
      g.setColor(new Color(255, 220, 70));
      g.fillRect(103, 100, 596, 350);
      g.setColor(Color.white);
      g.fillRect(205, 175, 170, 140);
      g.setColor(Color.black);
      g.fillRect(205, 240, 170, 5);
      g.fillRect(285, 175, 10, 140);
      g.setColor(Color.green);
      g.fillRect(0, 400, 900, 250);
      g.fillOval(180, 500, 250, 100);
      g.setColor(Color.black);

      Font f = new Font("Cooperlate", Font.BOLD, 14);
      g.setFont(f);
      g.drawString("Casa de Pedrito", 250, 160);

      g.setColor(new Color(153, 102, 000));
      g.fillRect(600, 200, 50, 350);

      g.setColor(new Color(0, 200, 1));
      g.fillOval(530, 190, 130, 220);

      g.fillOval(600, 100, 130, 220);
      g.fillOval(530, 100, 130, 220);
      g.fillOval(600, 190, 130, 220);

More Related Content

What's hot

Programa.eje
Programa.ejePrograma.eje
Programa.eje
guapi387
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacion
Jeff Tu Pechito
 
Programa en C++ ( escriba 3 números y diga cual es el mayor))
Programa en C++ ( escriba 3 números y diga cual es el mayor))Programa en C++ ( escriba 3 números y diga cual es el mayor))
Programa en C++ ( escriba 3 números y diga cual es el mayor))
Alex Penso Romero
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to Tinkerpop
Takahiro Inoue
 

What's hot (20)

Programa.eje
Programa.ejePrograma.eje
Programa.eje
 
C++ Programming - 2nd Study
C++ Programming - 2nd StudyC++ Programming - 2nd Study
C++ Programming - 2nd Study
 
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacion
 
10CSL67 CG LAB PROGRAM 10
10CSL67 CG LAB PROGRAM 1010CSL67 CG LAB PROGRAM 10
10CSL67 CG LAB PROGRAM 10
 
C++ Programming - 3rd Study
C++ Programming - 3rd StudyC++ Programming - 3rd Study
C++ Programming - 3rd Study
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th Study
 
array implementation
 array implementation array implementation
array implementation
 
10CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 810CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 8
 
PROGRAM FOR INSERTION SORTING IN ARRAY
PROGRAM FOR INSERTION SORTING IN ARRAY PROGRAM FOR INSERTION SORTING IN ARRAY
PROGRAM FOR INSERTION SORTING IN ARRAY
 
Stl algorithm-Basic types
Stl algorithm-Basic typesStl algorithm-Basic types
Stl algorithm-Basic types
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
Programa en C++ ( escriba 3 números y diga cual es el mayor))
Programa en C++ ( escriba 3 números y diga cual es el mayor))Programa en C++ ( escriba 3 números y diga cual es el mayor))
Programa en C++ ( escriba 3 números y diga cual es el mayor))
 
New text document
New text documentNew text document
New text document
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to Tinkerpop
 
11 1 포인터
11 1 포인터11 1 포인터
11 1 포인터
 
BCSL 058 solved assignment
BCSL 058 solved assignmentBCSL 058 solved assignment
BCSL 058 solved assignment
 
C++ Question on References and Function Overloading
C++ Question on References and Function OverloadingC++ Question on References and Function Overloading
C++ Question on References and Function Overloading
 
Understanding storage class using nm
Understanding storage class using nmUnderstanding storage class using nm
Understanding storage class using nm
 

Viewers also liked (6)

Consecuencias de la segunda guerra mundial
Consecuencias de la segunda guerra mundialConsecuencias de la segunda guerra mundial
Consecuencias de la segunda guerra mundial
 
MéTodo De Trabajo Por Proyectos Angelica
MéTodo De Trabajo Por Proyectos AngelicaMéTodo De Trabajo Por Proyectos Angelica
MéTodo De Trabajo Por Proyectos Angelica
 
What is Data Capture
What is Data CaptureWhat is Data Capture
What is Data Capture
 
Hacia el final de la guerra
Hacia el final de la guerraHacia el final de la guerra
Hacia el final de la guerra
 
CaracteríSticas Generales Del Aprendizaje Basado En Proyectos
CaracteríSticas Generales Del Aprendizaje Basado En ProyectosCaracteríSticas Generales Del Aprendizaje Basado En Proyectos
CaracteríSticas Generales Del Aprendizaje Basado En Proyectos
 
กลุ่มที่ ๒
กลุ่มที่ ๒กลุ่มที่ ๒
กลุ่มที่ ๒
 

Similar to Casa

This is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdfThis is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdf
anjandavid
 
I need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdfI need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdf
mail931892
 
Please help!!I wanted to know how to add a high score to this prog.pdf
Please help!!I wanted to know how to add a high score to this prog.pdfPlease help!!I wanted to know how to add a high score to this prog.pdf
Please help!!I wanted to know how to add a high score to this prog.pdf
JUSTSTYLISH3B2MOHALI
 
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdf
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdfImport java.awt.; Import acm.program.; Import acm.graphics.;.pdf
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdf
apexcomputer54
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
Jake3sTAveryn
 
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdfimport java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
galagirishp
 
package chapter15;import javafx.application.Application;import j.pdf
package chapter15;import javafx.application.Application;import j.pdfpackage chapter15;import javafx.application.Application;import j.pdf
package chapter15;import javafx.application.Application;import j.pdf
KARTIKINDIA
 
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdfimport java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
venkt12345
 
VISUALIZAR REGISTROS EN UN JTABLE
VISUALIZAR REGISTROS EN UN JTABLEVISUALIZAR REGISTROS EN UN JTABLE
VISUALIZAR REGISTROS EN UN JTABLE
Darwin Durand
 

Similar to Casa (20)

Awt
AwtAwt
Awt
 
Applications
ApplicationsApplications
Applications
 
This is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdfThis is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdf
 
applet.docx
applet.docxapplet.docx
applet.docx
 
I need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdfI need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdf
 
The Ring programming language version 1.5.3 book - Part 70 of 184
The Ring programming language version 1.5.3 book - Part 70 of 184The Ring programming language version 1.5.3 book - Part 70 of 184
The Ring programming language version 1.5.3 book - Part 70 of 184
 
662305 11
662305 11662305 11
662305 11
 
Please help!!I wanted to know how to add a high score to this prog.pdf
Please help!!I wanted to know how to add a high score to this prog.pdfPlease help!!I wanted to know how to add a high score to this prog.pdf
Please help!!I wanted to know how to add a high score to this prog.pdf
 
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdf
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdfImport java.awt.; Import acm.program.; Import acm.graphics.;.pdf
Import java.awt.; Import acm.program.; Import acm.graphics.;.pdf
 
Oop lecture9
Oop lecture9Oop lecture9
Oop lecture9
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
 
Clock For My
Clock For MyClock For My
Clock For My
 
J slider
J sliderJ slider
J slider
 
Creating an Uber Clone - Part VIII.pdf
Creating an Uber Clone - Part VIII.pdfCreating an Uber Clone - Part VIII.pdf
Creating an Uber Clone - Part VIII.pdf
 
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdfimport java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
import java.awt.FlowLayout;import java.awt.event.KeyEvent;import.pdf
 
package chapter15;import javafx.application.Application;import j.pdf
package chapter15;import javafx.application.Application;import j.pdfpackage chapter15;import javafx.application.Application;import j.pdf
package chapter15;import javafx.application.Application;import j.pdf
 
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdfimport java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
 
Java Unicode with Cool GUI Examples
Java Unicode with Cool GUI ExamplesJava Unicode with Cool GUI Examples
Java Unicode with Cool GUI Examples
 
Java Unicode with Live GUI Examples
Java Unicode with Live GUI ExamplesJava Unicode with Live GUI Examples
Java Unicode with Live GUI Examples
 
VISUALIZAR REGISTROS EN UN JTABLE
VISUALIZAR REGISTROS EN UN JTABLEVISUALIZAR REGISTROS EN UN JTABLE
VISUALIZAR REGISTROS EN UN JTABLE
 

More from miguelcastromejia (12)

Ensayo aplicaciones apis
Ensayo aplicaciones apisEnsayo aplicaciones apis
Ensayo aplicaciones apis
 
Portadas
PortadasPortadas
Portadas
 
Ejercicio 10
Ejercicio 10Ejercicio 10
Ejercicio 10
 
Ejercicio 8
Ejercicio 8Ejercicio 8
Ejercicio 8
 
Ejercicio 6
Ejercicio 6Ejercicio 6
Ejercicio 6
 
Ejercicio 4
Ejercicio 4Ejercicio 4
Ejercicio 4
 
Ejercicio 5.
Ejercicio 5.Ejercicio 5.
Ejercicio 5.
 
Ejercicio 9
Ejercicio 9Ejercicio 9
Ejercicio 9
 
Ejercicio 5
Ejercicio 5Ejercicio 5
Ejercicio 5
 
Ejercicio 3
Ejercicio 3Ejercicio 3
Ejercicio 3
 
Ejercicio 1
Ejercicio 1Ejercicio 1
Ejercicio 1
 
Ejercicio 2
Ejercicio 2Ejercicio 2
Ejercicio 2
 

Casa

  • 1. Pedro Antonio González Martínez Código g.setColor(new Color(153, 50, 000)); /* g.fillRect(400, 220, 100, 180); * To change this template, choose Tools | Templates * and open the template in the editor. g.setColor(Color.BLACK); */ g.fillOval(470, 300, 20, 20); package casapedrito; int x = 700; import java.awt.*; int y = 500; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; } class Casita extends Frame { public void mostrar() { setVisible(true); Casita(int ancho, int alto) { setSize(ancho, alto); } setLocationRelativeTo(null); setResizable(false); public static void main(String args[]) { Casita ver = new Casita(800, 650); addWindowListener(new WindowAdapter() { ver.mostrar();; } public void windowsClosing(WindowEvent e) { } System.exit(0); } Imagen public void windowClosed(WindowEvent e) { System.exit(0); } }); } public void paint(Graphics g) { g.setColor(new Color(200, 255, 255)); g.fillRect(0, 10, 1800, 600); g.setColor(new Color(255, 220, 70)); g.fillRect(103, 100, 596, 350); g.setColor(Color.white); g.fillRect(205, 175, 170, 140); g.setColor(Color.black); g.fillRect(205, 240, 170, 5); g.fillRect(285, 175, 10, 140); g.setColor(Color.green); g.fillRect(0, 400, 900, 250); g.fillOval(180, 500, 250, 100); g.setColor(Color.black); Font f = new Font("Cooperlate", Font.BOLD, 14); g.setFont(f); g.drawString("Casa de Pedrito", 250, 160); g.setColor(new Color(153, 102, 000)); g.fillRect(600, 200, 50, 350); g.setColor(new Color(0, 200, 1)); g.fillOval(530, 190, 130, 220); g.fillOval(600, 100, 130, 220); g.fillOval(530, 100, 130, 220); g.fillOval(600, 190, 130, 220);