“DIMENCION 2D (SHOW COLORS)”

Embed Size (px)

Citation preview

  • 8/19/2019 “DIMENCION 2D (SHOW COLORS)”

    1/2

    INSTITUTO TECNOLÓGICO DE TAPACHULA 

    DEPARTAMENTO DE SISTEMAS Y COORDINACIÓN

    DOCENTE: L. I. NICOLAS CABRERA HIDALGO

    MATER A: GRAFICACIÓN

    PRACT CA :

    “D MENC ON 2D (SHOW COLORS)”

      ALUMNOS: NÚMERO DE CONTROL:

    MÉRIDA CORTES SERGIO JAIR !"#$%&

    'TAPACHULA CHIAPAS( MÉ)ICO A #" DE FEBRERO DEL 2#$'

    “PERIODO: ENERO'JUNIO 2#$”

    Package grafcacion;

    Import java.awt. *;

    Import javax.swing. *;

    /**

     *

     * @author SER!

     */

  • 8/19/2019 “DIMENCION 2D (SHOW COLORS)”

    2/2

    Pu"#ic c#ass $rafcacion exten%s &'rame (

      Pu"#ic $rafcacion)

      (

      super )+ ,sing o#ors +;

      setSi-e)0 12;

      set3isi"#e )true;  4

      pu"#ic voi% paint)$raphics g

      (

      super.paint )g;

      g.seto#or )new o#or )5660 0 ;

      g.f##Rect)560 560 10 5;

      g.%rawString )+urrent R$78+9 g.geto#or)0 120 ;

      g.seto#or )new o#or ).:0 1.:0 .:;

      g.f##Rect)560 60 10 5;

      g.%rawString )+urrent R$78+ 9 g.geto#or)01206;

      g.seto#or )o#or."#ue;

      g.f##Rect)560 o#or.?$EAB;

      g.seto#or)co#or;

      g.f##Rect)56010105;

      g.%rawString)+R$7 va#ues8+9 co#or.getRe%)9+0+9 co#or.get7#ue)0120116;

      4

     

    Pu"#ic static voi% main )String CD args

    (

      $rafcacion app#ication>new $rafcacion);

      app#ication.sete:au#t#oseFperation)&'rame.EGIBHFAHFSE;

      4

    4

    RESULTADO: