Manejo de Graficos Netbeans

  • Upload
    eimar

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

  • 8/18/2019 Manejo de Graficos Netbeans

    1/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    PROGRAMACION VISUAL CON

    JAVA E IDE NETBEANS

    UNIDADES TECNOLOGICAS DE SANTADER.

    TECNOLOGIA EN TELECOMUNICACIONES

  • 8/18/2019 Manejo de Graficos Netbeans

    2/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    TABLA DE CONTENIDO

    Graphics  2 

    Comando principales de Graphics 7 

    PRACTICA 1. Creación e C!rc"#$s c$n Graphics "%i#i&an$ Beans  15 

    PRACTICA '. Mane($ e Gr)*ic$s+ "%i#i&an$ Beans  24 

    PRACTICA ,. Creación e L!neas - i/"ras. U%i#i&an$ JPane#.  30 

    PRACTICA 0. Creación e Arc$s. U%i#i&an$ JPane#.  35 

    PRACTICA . Di2"($ e p$#!/$n$s. U%i#i&an$ JPane#.  40 

    PRACTICA 3. Di2"($ e *i/"ras e Ja4a'D. U%i#i&an$ JPane#.  45 

    PRACTICA 5. Di2"($ e *i/"ras i2"(ar c$n r"%as /enera#es. U%i#i&an$ JPane#.  50 

    PRACTICA 6. M$4i7ien%$s e *i/"ras. U%i#i&an$ JPane#.  55 

     

  • 8/18/2019 Manejo de Graficos Netbeans

    3/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    Graphics

    La clase Graphics:

    Casi t!as las c"p#e#tes $ c#te#e!res !e S%i#& tie#e# '# "(t! pai#t)&*ascia! +'e sir,e para !i-'.arls e# pa#talla/ 0a,a i#,ca este "(t!a't"1tica"e#te c'a#! tie#e +'e "strar !e 3r"a est1#!ar la c"p#e#te c#te#e!r e# c'esti4# )est es s's -r!es s' t5t'l si l tie#e etc/*El "(t! pai#t)&* se re!e3i#e c'a#! se +'iere +'e ests ele"e#ts te#&a# '#aspect partic'lar pr e.e"pl c'a#! se +'iere !i-'.ar al& espec53ic s-re ells/El "(t! pai#t)&* es !e la 3r"a

    p'-lic ,i! pai#t)Graphics &* 6 /// 7 

    D#!e & es '# -.et !e la clase a-stracta Graphics/ T! c#te#e!r c"p#e#te+'e se p'e!a !i-'.ar e# pa#talla tie#e ascia! '# -.et & !e esta clase c# lai#3r"aci4# s-re el 1rea !e la pa#talla +'e elc#te#e!r la c"p#e#te c'-re/ A!e"1s el -.et & !isp#e !e "(t!s parahacer &r13ics )!i-'.ar c5rc'ls rect1#&'ls l5#eas etc/*

    La clase Graphics se i"prta !e a%t:

    i"prt .a,a/a%t/89 

    C'a#! el "(t! pai#t)&* se e.ec'ta es pr+'e ha si! i#,ca! pr trs "(t!s#'#ca i#,ca! pr#strs $ el par1"etr +'e 'sa crresp#!e a '# -.et !e la clase Graphics ascia!al c#te#e!r c"p#e#te +'e este"s "a#e.a#!/C'a#! se re!e3i#e el "(t! pai#t)&* sie"pre se c"ie#a c# '#a i#,caci4#

    s'per/pai#t)&* al "(t! !e la s'perclase ase&'ra#! as5 +'e se !i-'.a la parteest1#!ar !el c#te#e!r c"p#e#te +'e este"s "a#e.a#!/

    Pr e.e"pl ,a"s a !i-'.ar '#a cara e# '# "arc/ U# "arc es '# ele"e#t !e laclase 0;ra"e $ para !i-'.ar e# (l prce!e"s as5:

  • 8/18/2019 Manejo de Graficos Netbeans

    4/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL <

    p'-lic ,i! pai#t )Graphics &*6 s'per/pai#t)&*9 

     ==Di-'. el c#tr# !e la cara &/setClr)Clr/BLAC>*9 &/3illO,al)?@ @ ?@@ ?@@*9 

     ==Di-'. !e ls .s &/setClr)Clr/GREEN*9 &/3illO,al)?2 ?@@ ?@ ?@*9 &/3illO,al)? ?@@ ?@ ?@*9 

     ==Di-'. !e la #ari &/!ra%Li#e)?@ ?@@ ?@ ?

  • 8/18/2019 Manejo de Graficos Netbeans

    5/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    •  !ra%Arc)$a#chalt i#iciA#&'l-arri!A#&'l*: !i-'.a parte !e '#a elipse!e#tr !e '# rect1#&'l i"a&i#ari c'$a es+'i#a s'perir i+'ier!a est1 e# )$*tie#e el lar& $ a#ch !a!s e"piea a !i-'.ar e# el 1#&'l i#iciA#&'l $ hace'# -arri! !e -arri!A#&'l

    •  setClr)Clr/re!*: ca"-ia la Fti#ta !el -.et & $ la p#e !e clr r./ La

    clase Clr se i"prta !e a%t:

    i"prt .a,a/a%t/89 

    Di-'.ar s-re Pa#eles

    •  C'a#! se act'alia '# c"p#e#te se -rra s' aspect act'al $ sei#,capai#t)&*/ El -rra! pre,i p'e!e pr!'cir parpa!e )3licHeri#&* pr l +'e a,eces el "(t! pai#t)&* e,ita hacerl/

    •  Si# e"-ar& la act'aliaci4# p'e!e #ecesitar hacer el -rra! pre,i)paraact'aliar el 3#! !el c"p#e#te pr e.e"pl*/ E# ests cass se i#,ca el"(t! pai#tC"p#e#t)&* !e la clase 0C"p#e#t +'e per"ite hacer '#-arri! pre,i per 'sa#! la t(c#ica !el !-le -'33er para eli"i#ar el parpa!e/

    •  E# cass c" ls a#terires l +'e se hace es re!e3i#ir el"(t! pai#tC"p#e#t)&* e# l'&ar !el "(t! pai#t)&*/

    Pr e.e"pl para !i-'.ar la cara +'e pi#ta"s a#tes per s-re '# ).*pa#el e# l'&ar!e s-re '# "arc hace"s l si&'ie#te:

    •  Se !eclara la clase Pa#elCara +'e etie#!e la clase 0Pa#el c" clase )pri,a!a*!e la clase MarcCara +'e ha-5a"s crea! a#tes

    •  Se re!e3i#e el "(t! pai#tC"p#e#t)&* 'sa#! las "is"as i#str'cci#es +'e

    a#tes per lla"a#! i#icial"e#te a s'per/pai#tC"p#e#t)&*

    p'-lic ,i! pai#tC"p#e#t)Graphics &* 6 s'per/pai#tC"p#e#t)&*9///7 

    C'a#! el c#te#i! !e '# "arc pa#el ca"-ia el "(t! repai#t)* se e#car&a!e act'aliar el c#te#e!r $ "strarl pr pa#talla i#,ca#! i"pl5cita"e#te el"(t! pai#t)&* pai#tC"p#e#t)&*/

    Pr e.e"pl para aa!ir '# -t4# al "arc +'e "stra-a '#a cara s#rie#te !e 3r"a+'e c'a#! se p'lse la cara ca"-ie a '#a cara ee#.a!a -asta hacer l si&'ie#te:

    •  Se aa!e a c#te#tPa#e el -t4# c'$ e3ect ca"-iar1 la s#risa !e la cara•  Se aa!e '# atri-'t -lea# al "arc +'e i#!ica si la cara s#r5e #

    pri,ate -lea# s#rieJtr'e9 

  • 8/18/2019 Manejo de Graficos Netbeans

    6/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    •  De#tr !el acti#Per3r"e! !el -t# c!ea"s l si&'ie#te:

    s#rieJKs#rie9 repai#t)*9 

    •  El "(t! pai#tC"p#e#t)&* para pi#tar el pa#el se re!e3i#e pr el si&'ie#te:

    p'-lic ,i! pai#tC"p#e#t)Graphics &* 6 s'per/pai#tC"p#e#t)&*9 

     ==Di-'. !e la cara i&'al +'e a#tes sal, la -ca 

    /// 

     ==Di-'. !e la -ca 

    i3 )s#rie* &/!ra%Arc)?? ?2

  • 8/18/2019 Manejo de Graficos Netbeans

    7/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    Prese#taci4# !e i"1&e#es

    0a,a per"ite i#crprar i"1&e#es !e tip GI; $ 0PEG !e3i#i!as e# 3ichers/ Se !isp#epara ell !e la clase .a,a/a%t/I"a&e/ Para car&ar '#a i"a&e# ha$ +'e i#!icar lalcaliaci4# !el archi, $ car&arl "e!ia#te el "(t! &etI"a&e)*/ Este "(t! eiste

    e# las clases .a,a/a%t/TlHit/

    E#t#ces para car&ar '#a i"a&e# ha$ +'e c"e#ar crea#! '# -.et ) '#are3ere#cia* I"a&e $ lla"ar al "(t! &etI"a&e)* )!e TlHit*9 U#a ,e car&a!a lai"a&e# ha$ +'e represe#tarla para l c'al se re!e3i#e el "(t! pai#t)* para lla"ar al"(t! !ra%I"a&e)* !e la clase Graphics/ Ls -.ets Graphics p'e!e# "strari"1&e#es a tra,(s !el "(t!: !ra%I"a&e)*/ Dich "(t! a!"ite ,arias 3r"asa'#+'e casi sie"pre ha$ +'e i#cl'ir el #"-re !el -.et i"a&e# crea!/

    Clase I"a&e

    U#a i"a&e# es '# -.et &r13ic recta#&'lar c"p'est pr piels clrea!s/ Ca!apiel e# '#a i"a&e# !escri-e '# clr !e '#a partic'lar lcaliaci4# !e la i"a&e#/

     A c#ti#'aci4# al&'#s "(t!s !e la clase I"a&e:

    La clase Graphics pr,ee el "(t! !ra%I"a&e)* para !i-'.ar i"a&e#es9 este "(t!a!"ite ,arias 3r"as:

    !ra%I"a&e )I"a&e i i#t i#t $ I"a&eO-ser,er * 

    !ra%I"a&e )I"a&e ii#t i#t $i#t %i!thi#t hei&htI"a&eO-ser,er * 

    U# e.e"pl !el "et! pai#t)Graphics G* para traer '#a i"a&e# !e la carpeta rai es elsi&'ie#te:

    p'-lic ,i! pai#t )Graphics &* 

    s'per/pai#t)&*9 

    TlHit t J TlHit/&etDe3a'ltTlHit )*9 I"a&e i"a&e# J t/&etI"a&e )i"a&e#?/.p&*9 

    &/!ra%I"a&e )i"a&e# @ @ this*9 

  • 8/18/2019 Manejo de Graficos Netbeans

    8/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    Comando principales de Graphics

    ?/  p'-lic a-stract ,i! c#earRec%)i#t i#t $ i#t %i!th i#t hei&ht*

    Clears the speci3ie! recta#&le -$ 3illi#& it %ith the -acH&r'#! clr 3 the c'rre#t!ra%i#& s'r3ace/ This perati# !es #t 'se the c'rre#t pai#t "!e/

    Be&i##i#& %ith 0a,a ?/? the -acH&r'#! clr 3 33scree# i"a&es "a$ -e s$ste"!epe#!e#t/ Applicati#s sh'l! 'se setClr 3ll%e! -$ 3illRect t e#s're that a#33scree# i"a&e is cleare! t a speci3ic clr/

    Para7e%ers8 

    the   cr!i#ate 3 the recta#&le t clear/

    $ the $  cr!i#ate 3 the recta#&le t clear/%i!th the %i!th 3 the recta#&le t clear/hei&ht the hei&ht 3 the recta#&le t clear/

    2/  p'-lic a-stract ,i! c#ipRec%)i#t i#t $ i#t %i!th i#t hei&ht*

    I#tersects the c'rre#t clip %ith the speci3ie! recta#&le/ The res'lti#& clippi#& area is thei#tersecti# 3 the c'rre#t clippi#& area a#! the speci3ie! recta#&le/ I3 there is #c'rre#t clippi#& area either -eca'se the clip has #e,er -ee# set r the clip has -ee#

    cleare! 'si#& setClip)#'ll* the speci3ie! recta#&le -ec"es the #e% clip/ This "eth!sets the 'ser clip %hich is i#!epe#!e#t 3 the clippi#& assciate! %ith !e,ice -'#!sa#! %i#!% ,isi-ilit$/ This "eth! ca# #l$ -e 'se! t "aHe the c'rre#t clip s"aller/ Tset the c'rre#t clip lar&er 'se a#$ 3 the setClip "eth!s/ Re#!eri#& perati#s ha,e# e33ect 'tsi!e 3 the clippi#& area/

    Para7e%ers8 

    the cr!i#ate 3 the recta#&le t i#tersect the clip %ith$ the $ cr!i#ate 3 the recta#&le t i#tersect the clip %ith%i!th the %i!th 3 the recta#&le t i#tersect the clip %ithhei&ht the hei&ht 3 the recta#&le t i#tersect the clip %ith

  • 8/18/2019 Manejo de Graficos Netbeans

    9/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    the c"p#e#t t the le3t r 'p%ar!s speci3$ a #e&ati,e ,al'e 3r ! r !$/ I3 a prti#3 the s'rce recta#&le lies 'tsi!e the -'#!s 3 the c"p#e#t r is -sc're! -$a#ther %i#!% r c"p#e#t cp$Area %ill -e '#a-le t cp$ the assciate! piels/The area that is "itte! ca# -e re3reshe! -$ calli#& the c"p#e#ts pai#t "eth!/

    Para7e%ers8 

    the   cr!i#ate 3 the s'rce recta#&le/$ the $  cr!i#ate 3 the s'rce recta#&le/%i!th the %i!th 3 the s'rce recta#&le/hei&ht the hei&ht 3 the s'rce recta#&le/! the hri#tal !ista#ce t cp$ the piels/!$ the ,ertical !ista#ce t cp$ the piels/

    /  p'-lic ,i! ra9,DRec%)i#t i#t $ i#t %i!th i#t hei&ht -lea# raise!*Dra%s a

  • 8/18/2019 Manejo de Graficos Netbeans

    10/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    The ce#ter 3 the arc is the ce#ter 3 the recta#&le %hse ri&i# is )  $ * a#! %hse sieis speci3ie! -$ the %i!th a#! hei&ht ar&'"e#ts/

    The res'lti#& arc c,ers a# area %i!th Q ? piels %i!e -$ hei&ht Q ? piels tall/

    The a#&les are speci3ie! relati,e t the ##s+'are ete#ts 3 the -'#!i#& recta#&les'ch that !e&rees al%a$s 3alls # the li#e 3r" the ce#ter 3 the ellipse t the 'pperri&ht cr#er 3 the -'#!i#& recta#&le/ As a res'lt i3 the -'#!i#& recta#&le is#ticea-l$ l#&er i# #e ais tha# the ther the a#&les t the start a#! e#! 3 the arcse&"e#t %ill -e sHe%e! 3arther al#& the l#&er ais 3 the -'#!s/

    Para7e%ers8 

    the   cr!i#ate 3 the 'pperle3t cr#er 3 the arc t -e !ra%#/$ the $  cr!i#ate 3 the 'pperle3t cr#er 3 the arc t -e !ra%#/%i!th the %i!th 3 the arc t -e !ra%#/

    hei&ht the hei&ht 3 the arc t -e !ra%#/startA#&le the -e&i##i#& a#&le/arcA#&le the a#&'lar ete#t 3 the arc relati,e t the start a#&le/

    /  p'-lic a-stract -lea# ra9I7a/e)I"a&e i"& i#t i#t $ I"a&eO-ser,er -ser,er*

    Dra%s as "'ch 3 the speci3ie! i"a&e as is c'rre#tl$ a,aila-le/ The i"a&e is !ra%# %ithits tple3t cr#er at )  $ * i# this &raphics c#tets cr!i#ate space/ Tra#spare#t

    piels i# the i"a&e ! #t a33ect %hate,er piels are alrea!$ there/

    This "eth! ret'r#s i""e!iatel$ i# all cases e,e# i3 the c"plete i"a&e has #t $et-ee# la!e! a#! it has #t -ee# !ithere! a#! c#,erte! 3r the c'rre#t 'tp't !e,ice/

    I3 the i"a&e has c"pletel$ la!e! a#! its piels are # l#&er -ei#& cha#&e! the#!ra%I"a&e ret'r#s tr'e/ Other%ise !ra%I"a&e ret'r#s 3alse a#! as "re 3 the i"a&e-ec"es a,aila-le r it is ti"e t !ra% a#ther 3ra"e 3 a#i"ati# the prcess thatla!s the i"a&e #ti3ies the speci3ie! i"a&e -ser,er/

    Para7e%ers8 

    i"& the speci3ie! i"a&e t -e !ra%#/ This "eth! !es #thi#& i3 i"& is #'ll/ the   cr!i#ate/$ the $  cr!i#ate/-ser,er -.ect t -e #ti3ie! as "re 3 the i"a&e is c#,erte!/

    Re%"rns8 3alse i3 the i"a&e piels are still cha#&i#&9 tr'e ther%ise/

  • 8/18/2019 Manejo de Graficos Netbeans

    11/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?@

    /  p'-lic a-stract ,i! ra9Line)i#t ? i#t $? i#t 2 i#t $2*

    Dra%s a li#e 'si#& the c'rre#t clr -et%ee# the pi#ts )? $?* a#! )2 $2* i# this

    &raphics c#tets cr!i#ate s$ste"/

    Para7e%ers8 

    ? the 3irst pi#ts   cr!i#ate/$? the 3irst pi#ts $  cr!i#ate/2 the sec#! pi#ts   cr!i#ate/$2 the sec#! pi#ts $  cr!i#ate/

    /  p'-lic a-stract ,i! ra9O4a#)i#t i#t $ i#t %i!th i#t hei&ht*Dra%s the 'tli#e 3 a# ,al/ The res'lt is a circle r ellipse that 3its %ithi# the recta#&lespeci3ie! -$ the $ %i!th a#! hei&ht ar&'"e#ts/

    The ,al c,ers a# area that is %i!th Q ? piels %i!e a#! hei&ht Q ? piels tall/

    Para7e%ers8 

    the   cr!i#ate 3 the 'pper le3t cr#er 3 the ,al t -e !ra%#/$ the $  cr!i#ate 3 the 'pper le3t cr#er 3 the ,al t -e !ra%#/

    %i!th the %i!th 3 the ,al t -e !ra%#/hei&ht the hei&ht 3 the ,al t -e !ra%#/

    /  p'-lic a-stract ,i! ra9P$#-#ine)i#t Pi#ts i#t $Pi#ts i#t #Pi#ts*

    Dra%s a se+'e#ce 3 c##ecte! li#es !e3i#e! -$ arra$s 3   a#! $  cr!i#ates/ Each pair3 )  $ * cr!i#ates !e3i#es a pi#t/ The 3i&'re is #t clse! i3 the 3irst pi#t !i33ers3r" the last pi#t/

    Para7e%ers8 

    Pi#ts a# arra$ 3   pi#ts$Pi#ts a# arra$ 3 $  pi#ts#Pi#ts the ttal #'"-er 3 pi#ts

  • 8/18/2019 Manejo de Graficos Netbeans

    12/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ??

    ?@/ p'-lic ,i! ra9Rec%)i#t i#t $ i#t %i!th i#t hei&ht*

    Dra%s the 'tli#e 3 the speci3ie! recta#&le/ The le3t a#! ri&ht e!&es 3 the recta#&leare at a#! Q %i!th/ The tp a#! -tt" e!&es are at $ a#! $ Q hei&ht/ Therecta#&le is !ra%# 'si#& the &raphics c#tets c'rre#t clr/

    Para7e%ers8 

    the   cr!i#ate 3 the recta#&le t -e !ra%#/$ the $  cr!i#ate 3 the recta#&le t -e !ra%#/%i!th the %i!th 3 the recta#&le t -e !ra%#/hei&ht the hei&ht 3 the recta#&le t -e !ra%#/

    ??/ p'-lic a-stract ,i! ra9R$"nRec%)i#t i#t $ i#t %i!th i#t hei&ht i#t arci!th

    i#t arcei&ht*Dra%s a# 'tli#e! r'#!cr#ere! recta#&le 'si#& this &raphics c#tets c'rre#t clr/The le3t a#! ri&ht e!&es 3 the recta#&le are at a#! Q %i!th respecti,el$/ The tpa#! -tt" e!&es 3 the recta#&le are at $ a#! $ Q hei&ht/

    Para7e%ers8 

    the   cr!i#ate 3 the recta#&le t -e !ra%#/$ the $  cr!i#ate 3 the recta#&le t -e !ra%#/%i!th the %i!th 3 the recta#&le t -e !ra%#/

    hei&ht the hei&ht 3 the recta#&le t -e !ra%#/arci!th the hri#tal !ia"eter 3 the arc at the 3'r cr#ers/arcei&ht the ,ertical !ia"eter 3 the arc at the 3'r cr#ers/

    ?2/ p'-lic a-stract ,i! ra9S%rin/)Stri#& str i#t i#t $*

    Dra%s the tet &i,e# -$ the speci3ie! stri#& 'si#& this &raphics c#tets c'rre#t 3#ta#! clr/ The -aseli#e 3 the le3t"st character is at psiti# )  $ * i# this &raphicsc#tets cr!i#ate s$ste"/

    Para7e%ers8 

    str the stri#& t -e !ra%#/ the   cr!i#ate/$ the $  cr!i#ate

  • 8/18/2019 Manejo de Graficos Netbeans

    13/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?2

    ?

  • 8/18/2019 Manejo de Graficos Netbeans

    14/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?<

    startA#&le the -e&i##i#& a#&le/arcA#&le the a#&'lar ete#t 3 the arc relati,e t the start a#&le/

    ?/ p'-lic a-stract ,i! *i##O4a#)i#t i#t $ i#t %i!th i#t hei&ht*

    ;ills a# ,al -'#!e! -$ the speci3ie! recta#&le %ith the c'rre#t clr/

    Para7e%ers8 

    the   cr!i#ate 3 the 'pper le3t cr#er 3 the ,al t -e 3ille!/$ the $  cr!i#ate 3 the 'pper le3t cr#er 3 the ,al t -e 3ille!/%i!th the %i!th 3 the ,al t -e 3ille!/hei&ht the hei&ht 3 the ,al t -e 3ille!/

    ?/ p'-lic a-stract ,i! *i##P$#-/$n)i#t Pi#ts i#t $Pi#ts i#t #Pi#ts*

    ;ills a clse! pl$&# !e3i#e! -$ arra$s 3   a#! $  cr!i#ates/

    This "eth! !ra%s the pl$&# !e3i#e! -$ #Pi#t li#e se&"e#ts %here the 3irst #Pi#t  ? li#e se&"e#ts are li#e se&"e#ts 3r" )Pi#tsi ? $Pi#tsi ?* t)Pi#tsi $Pi#tsi* 3r ? W i  W #Pi#ts/ The 3i&'re is a't"aticall$ clse! -$ !ra%i#&a li#e c##ecti#& the 3i#al pi#t t the 3irst pi#t i3 thse pi#ts are !i33ere#t/

    The area i#si!e the pl$&# is !e3i#e! 'si#& a# e,e#!! 3ill r'le als H#%# as thealter#ati#& r'le/

    Para7e%ers8 

    Pi#ts a a# arra$ 3 cr!i#ates/$Pi#ts a a# arra$ 3 $ cr!i#ates/#Pi#ts a the ttal #'"-er 3 pi#ts/

    ?/ p'-lic a-stract ,i! *i##R$"nRec%)i#t i#t $ i#t %i!th i#t hei&ht i#t arci!th i#tarcei&ht*

    ;ills the speci3ie! r'#!e! cr#er recta#&le %ith the c'rre#t clr/ The le3t a#! ri&hte!&es 3 the recta#&le are at a#! Q %i!th ? respecti,el$/ The tp a#! -tt"e!&es 3 the recta#&le are at $ a#! $ Q hei&ht ?/

    Para7e%ers8 

  • 8/18/2019 Manejo de Graficos Netbeans

    15/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    the   cr!i#ate 3 the recta#&le t -e 3ille!/$ the $  cr!i#ate 3 the recta#&le t -e 3ille!/%i!th the %i!th 3 the recta#&le t -e 3ille!/hei&ht the hei&ht 3 the recta#&le t -e 3ille!/arci!th the hri#tal !ia"eter 3 the arc at the 3'r cr#ers/

    arcei&ht the ,ertical !ia"eter 3 the arc at the 3'r cr#ers/

    ?/ p'-lic a-stract ,i! se%C$#$r)Clr c*

    Sets this &raphics c#tets c'rre#t clr t the speci3ie! clr/ All s'-se+'e#t &raphicsperati#s 'si#& this &raphics c#tet 'se this speci3ie! clr/

    Para7e%ers8 

    c the #e% re#!eri#& clr/

    ?/ p'-lic a-stract ,i! se%$n%);#t 3#t*

    Sets this &raphics c#tets 3#t t the speci3ie! 3#t/ All s'-se+'e#t tet perati#s'si#& this &raphics c#tet 'se this 3#t/ A #'ll ar&'"e#t is sile#tl$ ire!/

    Para7e%ers8 

    3#t the 3#t/

  • 8/18/2019 Manejo de Graficos Netbeans

    16/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    PRACTICA 1. Creación e C!rc"#$s c$nGraphics "%i#i&an$ Beans 

    Ins%r"cci$nes

    Pas$ 18

    Crre NetBea#s $ crea '# #'e, pr$ect al +'e lla"aras Sesi#/ A&re&a '# 0;ra"ella"a! Mai#;ra"e/ De-er1s te#er '#a estr'ct'ra !e pr$ect si"ilar a la +'e se ,e e#la si&'ie#te 3t&ra35a:

    Pas$ '8

    Crea la si&'ie#te i#ter3a &r13ica:

    El c#trl !e la parte !e a-a. se lla"a 0TetArea $ es '# 0Tet;iel! +'e p'e!e te#er"1s !e '# re#&l4#/ Al a&re&ar '# 0TetArea a't"atica"e#te se a&re&a '# 0ScrllPa#e

    +'e s# las -arritas !e ls la!s c# las +'e p!e"s -a.ar el tet/ E# el Na,i&atrp!e"s ,er +'e el 0TetArea est1 !e#tr !e '# 0ScrllPa#e/ U#a ,e +'e te#&a"st!s ls c#trles !e-e"s p#erles ls si&'ie#tes #"-res )rec'er!a +'e p'e!es'tiliar ;2 para +'e sea "1s 31cil ca"-iarles el #"-re*:

  • 8/18/2019 Manejo de Graficos Netbeans

    17/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    Rec'er!a +'e para +'e el 0;ra"e se "'estre !e-es p#er la l5#ea setVisi-le)tr'e*9!e#tr !el c#str'ctr !e la clase !esp'(s !e la lla"a!a al "(t! i#itC"p#e#ts)*/U#a ,e +'e ha$as crea! la ,e#ta#a rec'er!a a&re&ar la l5#ea #e% Mai#;ra"e)* !e#tr!el "(t! "ai#)* !e la clase Mai#/

    Pas$ 08

    N'estr pr&ra"a ,a a calc'lar el 1rea !e '# a#ill +'e se calc'la "e!ia#te resta#! el1rea !el circ'l i#ter# !el 1rea !el circ'l eter#/ Para p!er hacer est #'estrpr&ra"a !e-e calc'lar el 1rea !el c5rc'l i#ter# $ !el c5rc'l eter# 'tilia#! elra!i/ C" esa peraci4# es repetiti,a ,a"s a p#erla e# '# "(t! pr separa!/El "(t! ,a a lla"arse calc'lateArea)* ,a a reci-ir el ra!i )tip !'-le* $ !e-ere&resar '# ,alr tip !'-le +'e represe#ta el 1rea/ E# c4!i& p!r5a"s ,erl c" elsi&'ie#te "(t!:

    Pas$ 8

     Ahra s5 ,a"s a crear el "(t! acti#Per3r"e!)* !e -t#Calc'late/ E# el "! !e!ise ha clicH !erech s-re el -t4# $ selecci#a E,e#ts X Acti# Xacti#Per3r"e!/ De#tr !el c4!i& !e-e"s -te#er ls ,alres !e ls ra!is p!e"s'tiliar el si&'ie#te c4!i& para l&rarl:

  • 8/18/2019 Manejo de Graficos Netbeans

    18/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    Pas$ 38

    U#a ,e +'e te#&a"s ls !ats !e-e"s ,ali!ar +'e el ra!i i#terir sea "e#r i&'al+'e el ra!i eterir/ Est p!e"s l&rarl "e!ia#te '# i3 $ s4l si s# ,1li!s!e-e"s !e calc'lar las 1reas $ restarlas/ El res'lta! 3i#al ,a"s a "strarl e# el

    0TetArea !e la parte i#3erir/ E# c4!i& p!r5a"s ,erl c" l si&'ie#te:

    Pr'e-a +'e t! 3'#ci#e crrecta"e#te e# t' aplicaci4# c"pila#! el pr&ra"a $crri(#!l/ asta este ""e#t !e-e p!er calc'lar el 1rea !e '# a#ill $ "strarla e#el 0TetArea +'e p'si"s para "strar res'lta!s ta"-i(# !e-e p!er ,ali!ar errres/

    Pas$ 58

     A'#+'e #'estr pr&ra"a $a c'"ple c# s' -.eti, "'chas ,eces es # es s'3icie#tepara #'estrs clie#tes +'e la "a$r5a !e las ,eces +'iere# al& '# pc "1s ,ists/ E#este ""e#t es e# el +'e p!e"s 'tiliar Graphics para !ar '# ,alr a&re&a! a#'estrs pr&ra"as/ C" ,i"s e# el a'test'!i p!e"s 'tiliar la clase Graphicspara pi#tar s-re '# c"p#e#te pr l +'e # p!e"s pi#tar s-re '# 0;ra"e)t(c#ica"e#te s5 se p'e!e per # se !e-e hacer pr la i"ple"e#taci4# !e 0a,a !el0;ra"e*/Este c"p#e#te p'e!e ser c'al+'ier c"p#e#te !e S%i#& a'#+'e re&'lar"e#te se'tilia '# 0La-el '# 0C"p#e#t pr ser "'$ se#cills $ li&ers/ Pr l ta#t parap!er pi#tar !e-e"s crear '# c"p#e#te #'e, +'e se c"prte c" 0C"p#e#tper +'e se !i-'.e !e "a#era !i3ere#te/ Para p!er hacer est !e-e"s hacer clicH!erech s-re el pa+'ete sesi# $ selecci#ar Ne% X Bea#;r"/

  • 8/18/2019 Manejo de Graficos Netbeans

    19/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    Si # se e#c'e#tra Bea#;r" e# el "e# !e-e"s selecci#ar Ne% X ;ile=;l!er $!e#tr !e ese "e# selecci#ar Bea#;r" c" se ,e e# la i"a&e#:

    N'estr Bea# ,a a lla"arse Ri#&Bea# $ s' s'perclase !e-e ser .a,a/s%i#&/0C"p#e#tc" se ,e e# las si&'ie#tes 3t&ra35as:

  • 8/18/2019 Manejo de Graficos Netbeans

    20/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

    Pas$ 68

     Al ter"i#ar aparecer1 '# errr !e +'e # p'e!e pi#tar la 3r"a pr+'e # es '#0a,aBea#/ Est es pr+'e t!a,5a # he"s pr&ra"a! c4" !e-e !e pi#tarse el

    0C"p#e#t $ NetBea#s t!a,5a # l p'e!e !i-'.ar/ a clicH e# s'rce $ ,ete alc4!i&/ P# el c'rsr e# al&# l'&ar e# -la#c 3'era !e '# "(t! per !e#tr !e laclase $ presi#ar CtrlQSpace para +'e apareca el !i1l& !e a'tc"pletar/ Ah5 !e-esescri-ir pai#tC"p#e#t $ se selecci#ar1 la e#tra!a +'e se ,e e# la 3t&ra35a:

    Es "'$ i"prta#te +'e sea pai#tC"p#e#t )si# la s* $ +'e a la !erecha !i&a ,erri!e/U#a ,e +'e l ha$as e#c#tra! presi#a e#ter $ se c#str'ir1 a't"1tica"e#te el"(t! pai#tC"p#e#t)* +'e tie#e '# par1"etr !e tip Graphics c# el +'e p!e"s!i-'.ar s-re el c"p#e#te/ Presi#a AltQShi3tQ; para resl,er las !epe#!e#cias)Graphics t!a,5a # esta-a i#cl'i! e# ls i"prts* $ !e#tr !e ese "(t! p# elsi&'ie#te c4!i&:

    La pala-ra cla,e this se re3iere a este c"p#e#te/ U#a ,e +'e crea"s la i#sta#cia $l p#e"s e# la ,e#ta#a this/&eti!th)* !e-e !e,l,er#s el a#ch !e ese

  • 8/18/2019 Manejo de Graficos Netbeans

    21/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2@

    c"p#e#te !e#tr !e la ,e#ta#a/ O-te#e"s el a#ch $ el alt !el c"p#e#te para&ara#tiar +'e t!a,5a esta"s !i-'.a#! !e#tr !e (l/

      De ac"er$ a %" a"%$es%"i$ :para ;"< crees ;"e *"nci$na e# cói/$an%eri$r= 

    C"pila t' pr&ra"a para re,isar +'e # ha$a #i#&# errr $ para &ara#tiar +'e elBea# ha si! c#str'i!/ Ahra !e-e"s a&re&ar #'estr Ri#&Bea# a la paleta !eNetBea#s para p!er p#erl e# la ,e#ta#a +'e hici"s a#terir"e#te/ P!e"s l&rares hacie#! clicH !erech s-re el Bea# e# el eplra!r !e pr$ects selecci#a#!Tls X A!! t Palette/

    E# la pa#talla +'e aparece selecci#a"s la carpeta !e Bea#s $ re&resa"s aMai#;ra"e e# "! !e !ise/ P!e"s ,er +'e e# la paleta !e#tr !e la secci4# !eBea#s ha apareci! #'estr Bea# as5 +'e ahra p!e"s a&re&arl a la ,e#ta#a/

     A&re&a el c"p#e#te a la ,e#ta#a/ Si e# el tie"p !e !ise parece +'e t' Bea#t!a,5a # tie#e 3r"a # te prec'pes l +'e pasa es +'e NetBea#s # ,'el,e a leerls Bea#s si# hasta ,l,er a e"pear/ Est es '# errr e# el +'e est1# tra-a.a#! lspr&ra"a!res !e NetBea#s per # a3ecta t' pr$ect/ Desp'(s !e a&re&ar elRi#&Bea# ca"-i1le el #"-re a ri#& !e la "is"a "a#era +'e l har5as c# trsc"p#e#tes/ C"pila $ crre el pr&ra"a $ p!r1s ,er '#a ,e#ta#a si"ilar a lasi&'ie#te )!epe#!ie#! !el l'&ar e# +'e p'siste t' c#trl*:

  • 8/18/2019 Manejo de Graficos Netbeans

    22/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2?

    N'estr c#trl $a est1 !i-'.a#! '# rect1#&'l per ahra l +'e +'ere"s hacer es+'e !i-'.e ls a#ills i#terir $ eterir/ Para p!er hacer est es #ecesari "!i3icar

    Ri#&Bea#/ Pri"er ,a"s a crear '# par !e ,aria-les +'e &'ar!e# ls ,alres !e lsra!is !esp'(s !e-e"s crear '# "(t! +'e reci-a ls ra!is +'e se !e-e# !i-'.ar $!esp'(s "a#!e# !i-'.ar 'tilia#! ests !ats/ Cpia el si&'ie#te c4!i& !e#tr !eRi#&Bea#:

    E# este c4!i& ,a"s a ,er ,arias csas i#teresa#tes/ Pri"er +'e #a!a 35.ate +'e las,aria-les tie#e# el "!i3ica!r pri,ate para +'e trs -.ets # p'e!a# acce!er a s's,aria-les "1s 5#ti"as/ Est es pr al& lla"a! e#caps'laci4# +'e ,a"s a ,er "'ch"1s a pr3'#!ia! al tcar el te"a !e pr&ra"aci4# rie#ta!a a -.ets/ A!e"1s esi"prta#te #tar +'e las ,aria-les s# !e tip i#t pr+'e Graphics # p'e!e "a#e.arls tips !e !at !'-le/ E# el "(t! setRa!i's)* p!e"s ,er +'e 'tilia"s lapala-ra cla,e this para re3erir#s a la ,aria-le !el -.et a !i3ere#cia !e la ,aria-lepasa!a c" par1"etr est ta"-i(# es '# c"prta"ie#t +'e a#aliare"s "1s!etalla!a"e#te al ,er pr&ra"aci4# rie#ta!a a -.ets/ E# pcas pala-ras:  this/i##erRa!i's JJ i##erRa!i's !e la clase  i##erRa!i's JJ i##erRa!i's el par1"etr

    Pr lti" p!e"s ,er el "(t! repai#t)* +'e le !ice al c"p#e#te +'e ha s'ce!i!al& +'e a"erita +'e ,'el,a a pi#tarse/ Este "(t! se e#car&a !e re,isar +'( 3'e l+'e s'ce!i4 $ lla"ar ls "(t!s a!ec'a!s para ,l,er a !i-'.ar el c"p#e#te/U#a ,e +'e he"s ech est !e-e"s "!i3icar el "(t! pai#tC"p#e#t)* para+'e 'tilice ests ,alres $ !i-'.e !s c5rc'ls e# l'&ar !el rect1#&'l +'e !i-'.aact'al"e#te/ P!e"s l&rar est "e!ia#te el si&'ie#te c4!i&:

  • 8/18/2019 Manejo de Graficos Netbeans

    23/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 22

    Este "(t! p'e!e parecer '# pc c"plica!/ P!e"s ,er +'e pri"er calc'la"sel ce#tr !el c"p#e#te )!i,i!ie#! el a#ch e#tre !s $ el lar& e#tre !s*/ U#a ,e+'e he"s ech es ,a"s a p#er el p'#t i#icial e# el ce#tr "e#s el ra!i )c#est esta"s &ara#tia#! +'e el ce#tr !el c5rc'l est( a la "ita! !e la ,e#ta#apr+'e el c5rc'l "i!e !s ,eces el ra!i* $ pr lti" est$ p#ie#! el a#ch $ altc" el !-le !el ra!i/ P!e"s ,erl &r13ica"e#te:

    Pr lti" s4l !e-e"s "a#!ar lla"ar el "(t! setRa!i's)* !e#tr !elacti#Per3r"e! !el -t4# -t#Calc'late/ P!e"s hacerl !e la si&'ie#te "a#era:

     A!e"1s !e ls "(t!s !ra%Y )c" !ra%Rect)* !ra%O,al)** la clase Graphicsta"-i(# tie#e "(t!s 3illY )c" 3illRect)* $ 3illO,al)**/ Ests "(t!s !i-'.a# '#a3i&'ra +'e est1 relle#a !e clr/

    Para p!er ca"-iar el clr !el pi#cel +'e 'tilia"s para pi#tar s-re el -ea# p'e!es'tiliar el "(t! setClr)* !e la clase Graphics )es !ecir l 'tilias&/setClr)Clr/GREEN* re,isa el "e# !e a'tc"pletar !e NetBea#s para sa-eral&'#s trs clres +'e p'e!es 'tiliar*/

  • 8/18/2019 Manejo de Graficos Netbeans

    24/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

  • 8/18/2019 Manejo de Graficos Netbeans

    25/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    PRACTICA '. Mane($ e Gr)*ic$s+ "%i#i&an$Beans 

    I#str'cci#esPas ?:

    Descar&a el es+'elet "a#e. !e &r13ics +'e ,a"s a 'tiliar e# esta sesi4# $ a-re elpr$ect e# NetBea#s/ Ahra c"pila $ crre la aplicaci4#/ Aparecer1 '#a pa#talla &risc# tres !i,isi#es )+'e tie#e# c#trles a'#+'e # est1# pi#ta!s*/ Al ter"i#ar laaplicaci4# te#!re"s '#a i#ter3a &r13ica si"ilar a la si&'ie#te:

    E# esta aplicaci4# ,a"s a 'tiliar Graphics $ l +'e he"s apre#!i! !e cicls paracrear estas tres 3i&'ras/ Pri"er e"pece"s c# el ta-ler !e a.e!re/ C" p!e"s,er el ta-ler !e a.e!re es '#a 3i&'ra "'$ se#cilla c"p'esta !e c'a!rs r!e#a!se# '#a c'a!r5c'la !e /

     Va"s a a#aliar '# pc "1s a 3#! c4" ,a"s a hacer est:

  • 8/18/2019 Manejo de Graficos Netbeans

    26/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    N'estr ta-ler est1 3r"a! pr c'a!rs !e 2 pieles ca!a '#/ Es sii3ica +'e laes+'i#a s'perir i+'ier!a )el ri&e#* !e el +'i#t c'a!r !e la pri"era 3ila ser5a ) 2 @* es !ecir )?@@ @* el set c'a!r estar5a e# ) 2 @* )?2 @*/ A+'i p!e"s,er '# patr4# +'e es "'$ i"prta#te pr+'e es la -ase c# la +'e ,a"s a crear#'estr cicl/ Vea"s +'( s'ce!e para el +'i#t c'a!r !e la seta 3ila ) 2 2*

    )?@@ ?2*/ C" p!e"s ,er t!as las psici#es est1# e# -ase a ))cl'"#a ?* 2 )3ila ?* 2*/ Para e,itar estar resta#! a las cl'"#as $ las 3ilas p!e"s 'tiliar'# 5#!ice +'e e"piece !e cer e# l'&ar !e '#/L si&'ie#te +'e !e-e"s !eter"i#ar es c'1les s# ls l5"ites !e #'estr cicl/P!r5a"s hacer '# cicl +'e c'e#te hasta el $ +'e 'tilice '#a !i,isi4# $ s' "4!'lpara -te#er el #"er !e 3ila $ cl'"#a respecti,a"e#te/ P!e"s ,erl c# elsi&'ie#te c4!i&:

  • 8/18/2019 Manejo de Graficos Netbeans

    27/61

  • 8/18/2019 Manejo de Graficos Netbeans

    28/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

     V'el,e a pr-ar t' pr&ra"a $ ahra !e-er1 !i-'.ar el ta-ler !e "a#era crrecta )e#reali!a! casi  crrecta el ta-ler tie#e '# c'a!ra! #e&r e# la es+'i#a i#3erir !erecha$ !e-er5a ser -la#c p'e!es ca"-iar el clr c# el +'e e"pea"s a pi#tar paracrre&ir est*/ C" p'e!es ,er p'e!es 'tiliar el "4!'l $ la !i,isi4# c"peraci#es c"ple"e#tarias al 'tiliar cicls a'#+'e este e#3+'e # es "'$ 'tilia!/M1s a!ela#te ,ere"s '#a "a#era '# pc "1s se#cilla !e l&rar est "is"/ U#a ,e+'e ha$as pr-a! t' pr&ra"a c#ti#a c# el e.ercici !el &'sa#

     A+'i ha$ ,arias csas i"prta#tes +'e t"ar e# c'e#ta/ Pri"er +'e #a!a las partes!el c'erp ,a# a estar alter#a#! s' psici4# ,ertical e#tre @ $ / P'e!es -ser,ar +'et!as las partes !el c'erp ##es ,a# a estar arri-a "ie#tras +'e las pares ,a# a estara-a. p!e"s 'tiliar '# i3 +'e re,ise si la parte !el c'erp es ## par $ la p#&a e#la psici4# e# $ +'e le crresp#!e/ Ta"-i(# p!e"s ,er +'e la ca-ea es !i3ere#te!e las !e"1s partes !el c'erp pr l +'e !e-e"s pi#tarla pr separa! $ 3'era !e '#cicl/ Pr lti" !e-e"s !e3i#ir c4" ,a a ser el cicl +'e 'tilice"s para pi#tar t!aslas partes !el c'erp/La pri"era parte !esp'(s !e la ca-ea )pri"era parte !el c'erp* ,a a estar e# lapsici4# ? ?@ la se&'#!a parte ,a a estar e# la psici4# 2 ?@ la tercera parte ,a aestar e# la psici4# < ?@/ Ah5 est1 el patr4# +'e #ecesita"s para e"pear a pi#tar/

  • 8/18/2019 Manejo de Graficos Netbeans

    29/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    T"a#! est e# c'e#ta p!e"s 'tiliar '# cicl +'e e"piece !es!e ? )35.ate +'e lapri"era parte tie#e '# ? a !i3ere#cia !el pr-le"a a#terir pr+'e a+'5 la ca-ea es!i3ere#te*/T"a#! e# c'e#ta estas c#si!eraci#es p!e"s pr&ra"ar el si&'ie#te c4!i&:

    NOTA: Rec'er!a +'e es "'$ i"prta#te a'"e#tar el ac'"'la!r c# la l5#ea piecesQQ/;5.ate e# c4" ,a"s a !i-'.ar @ pieas e"pea#! el c#ta!r )pieces* e# ? $repitie#! el cicl "ie#tras  +'e pieces sea "e#r i&'al a c'are#ta/ Ta"-i(# 35.ate +'e'tilia"s '#a ,aria-le $ +'e represe#ta la psici4# e# $ e# +'e ,a"s a !i-'.ar $ el i3se ,a a e#car&ar !e ca"-iarla !e @ a $ ,ice,ersa se&# sea #ecesari/C"pila $ crre t' c4!i& ase&'r1#!te !e +'e se !i-'.e el &'sa# crrecta"e#te/ Prlti" ,a"s a !i-'.ar el ca"i4#/

    E# ter5a es "'$ si"ilar al &'sa# s4l +'e ahra e# l'&ar !e te#er '# #"er 3i. !epieas !el c'erp te#e"s '# #"er ,aria-le +'e se e#c'e#tra &'ar!a! e# la,aria-le -es/ Otr !etalle i"prta#te es +'e las ca.as ,a# separa!as '#as !e traspr l +'e te#!re"s +'e p#er '# pc !e separaci4#/

  • 8/18/2019 Manejo de Graficos Netbeans

    30/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    C" p!e"s ,er el "(t! es practica"e#te i&'al +'e el a#terir per ca"-ia"s'# pc la "a#era !e !i-'.ar ls c#trles/ C"pila t' aplicaci4# $ crrela para pr-ar+'e 3'#ci#e a!ec'a!a"e#te/ Ca"-ia el #"er !e ca.as +'e tie#e el ca"i4# 'tilia#!la ca.a !e tet )i#tr!'ce el #"er $ presi#a e#ter*/

    C"pri"e t' carpeta !e tra-a. $ "1#!ala pr crre/

  • 8/18/2019 Manejo de Graficos Netbeans

    31/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    32/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    33/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    34/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    35/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    36/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    37/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    38/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    39/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    40/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

  • 8/18/2019 Manejo de Graficos Netbeans

    41/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL @

    PRACTICA / Di-'. !e pl5&#s/ Utilia#! 0Pa#el/Ins%r"cci$nes

    Pas$ 18

    Crre NetBea#s $ crea '# #'e, pr$ect al +'e lla"aras &ra3icspli&#/

     A&re&a '# pa+'ete lla"a! p&ra3icpli&#/

  • 8/18/2019 Manejo de Graficos Netbeans

    42/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

     A&re&a '# 0;ra"e lla"a! ;Gra3icPli&#s/

     A!ici#ar '# 0Pa#el;r" c# el #"-re PGra3icPli&#/

  • 8/18/2019 Manejo de Graficos Netbeans

    43/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    De-er1s te#er '#a estr'ct'ra !e pr$ect si"ilar a la +'e se ,e e# la si&'ie#te3t&ra35a:

    Pas$ '8

     Va"s al c4!i& !e PGra3icPli&# $ a!ici#a"s el c4!i& !el pai#t e# !#!erealia"s el pi#ta! !e #'estras 3i&'ras

     == !i-'.ar pl5&#s $ plil5#eas p'-lic ,i! pai#t) Graphics & *

    6s'per/pai#t) & *9 == lla"ar al "(t! pai#t !e la s'perclase

    i#t ,alresY J 6 2@ @ @

  • 8/18/2019 Manejo de Graficos Netbeans

    44/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL <

    Pl$&# pli&#2 J #e% Pl$&#)*9 pli&#2/a!!Pi#t) ? ?

  • 8/18/2019 Manejo de Graficos Netbeans

    45/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    Pas$ 08

    E.ec'ta"s el pr&ra"a $ #s !ar5a l si&'ie#te:

    Realia"s ca"-is e# ls clres !e ls pli&#s/

  • 8/18/2019 Manejo de Graficos Netbeans

    46/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    PRACTICA / Di-'. !e 3i&'ras !e 0a,a2D/ Utilia#!0Pa#el/ 

    Ins%r"cci$nes

    Pas$ 18

    Crre NetBea#s $ crea '# #'e, pr$ect al +'e lla"aras &ra3ics3i&'ras2D/

     A&re&a '# pa+'ete lla"a! p&ra3ics3i&'ras2D/

  • 8/18/2019 Manejo de Graficos Netbeans

    47/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

     A&re&a '# 0;ra"e lla"a! ;p&ra3ics3i&'ras2D/

     A!ici#ar '# 0Pa#el;r" c# el #"-re P&ra3ics3i&'ras2D/

  • 8/18/2019 Manejo de Graficos Netbeans

    48/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    De-er1s te#er '#a estr'ct'ra !e pr$ect si"ilar a la +'e se ,e e# la si&'ie#te3t&ra35a:

    Pas$ '8

     Va"s al c4!i& !el pa#el $ a!ici#a"s el c4!i& !el pai#t e# !#!e realia"s elpi#ta! !e #'estras 3i&'ras

     == !i-'.ar 3i&'ras c# la API 0a,a2D p'-lic ,i! pai#t) Graphics & *6

    s'per/pai#t) & *9 == lla"ar al "(t! pai#t !e la s'perclase

    Graphics2D &2! J ) Graphics2D * &9 == c#,ertir & a Graphics2D

     == !i-'.ar elipse 2D relle#a c# '# &ra!ie#te a'la"arill&2!/setPai#t) #e% Gra!ie#tPai#t) *9 == !i-'.ar e# #e&r&&/!ra%Rect) ? ? *9 == !i-'.ar '# rect1#&'l&&/setClr) Clr/BLUE *9 == !i-'.ar e# a'l&&/3illRect) ? ?

  • 8/18/2019 Manejo de Graficos Netbeans

    49/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    &&/3illRect)

  • 8/18/2019 Manejo de Graficos Netbeans

    50/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

     A.'sta"s el pa#el al ta"a e# !#!e #s "'estre# las 3i&'ras/

    Pas$ 08

    E.ec'ta"s el pr&ra"a $ #s !ar5a l si&'ie#te:

  • 8/18/2019 Manejo de Graficos Netbeans

    51/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL @

    PRACTICA / Di-'. !e 3i&'ras !i-'.ar c# r'tas&e#erales/ Utilia#! 0Pa#el/ 

    Ins%r"cci$nes

    Pas$ 18

    Crre NetBea#s $ crea '# #'e, pr$ect al +'e lla"aras &ra3ics3i&'ras/

     A&re&a '# pa+'ete lla"a! p&ra3ics3i&'ras/

  • 8/18/2019 Manejo de Graficos Netbeans

    52/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL ?

     A&re&a '# 0;ra"e lla"a! ;p&ra3ics3i&'ras/

     A!ici#ar '# 0Pa#el;r" c# el #"-re P&ra3ics3i&'ras/

  • 8/18/2019 Manejo de Graficos Netbeans

    53/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL 2

    De-er1s te#er '#a estr'ct'ra !e pr$ect si"ilar a la +'e se ,e e# la si&'ie#te3t&ra35a:

    Pas$ '8

     Va"s al c4!i& !el pa#el $ a!ici#a"s el c4!i& !el pai#t e# !#!e realia"s elpi#ta! !e #'estras 3i&'ras

     == !i-'.ar r'tas &e#erales p'-lic ,i! pai#t) Graphics & *

    6s'per/pai#t) & *9 == lla"ar al "(t! pai#t !e la s'perclase

    i#t p'#tsY J 6 ?@

  • 8/18/2019 Manejo de Graficos Netbeans

    54/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL <

    &2!/3ill) estrella *9 == !i-'.ar estrella relle#a 7

     7 == 3i# !el "(t! pai#t  

    Ls errres +'e aparece# s# pr la 3alta !e i"prtar las li-rerias pr l c'al !a"s clics-re ls -"-ills r.s e i"prta"s las li-rerias/

    Pas$ ,8

    C"pila"s el pr&ra"a selecci#a"s el ;ra"e $ arrastra"s el pa#el +'e aca-a"s!e crear hacia el 3ra"e +'e!a#! !e la si&'ie#te 3r"a:

     A.'sta"s el pa#el al ta"a e# !#!e #s "'estre# las 3i&'ras/

  • 8/18/2019 Manejo de Graficos Netbeans

    55/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    Pas$ 08

    E.ec'ta"s el pr&ra"a $ #s !ar5a l si&'ie#te:

  • 8/18/2019 Manejo de Graficos Netbeans

    56/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    PRACTICA / M,i"ie#ts !e 3i&'ras/ Utilia#!0Pa#el/ 

    Ins%r"cci$nes

    Pas$ 18

    Crre NetBea#s $ crea '# #'e, pr$ect al +'e lla"aras ",er3i&'ras/

     A&re&a '# pa+'ete lla"a! p",er3i&'ras/

  • 8/18/2019 Manejo de Graficos Netbeans

    57/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

     A&re&a '# 0;ra"e lla"a! ;p",er3i&'ras/

     A!ici#ar '# 0Pa#el;r" c# el #"-re PM,er3i&'ras/

  • 8/18/2019 Manejo de Graficos Netbeans

    58/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    De-er1s te#er '#a estr'ct'ra !e pr$ect si"ilar a la +'e se ,e e# la si&'ie#te3t&ra35a:

    Pas$ '8

     Va"s al c4!i& !el pa#el $ a!ici#a"s el c4!i& !el pai#t e# !#!e realia"s elpi#ta! !e #'estras 3i&'ras

     ==De3i#i"s ,aria-les &l-ales para la '-icaci4# !el -al4#i#t PsJ@ Ps$J@9 == !i-'.ar 3#! $ -al#

    p'-lic ,i! pai#t) Graphics & *6

    s'per/pai#t) & *9 == lla"ar al "(t! pai#t !e la s'perclase

     == Crear '# 3#! a"arrill&/setClr) Clr/]ELLO *9&/3illRect) @@&eti!th)*&etei&ht)**9

    i3 )Ps\@*6PsJ@9

    7i3 )Ps$\@*6

    Ps$J@97

    i3 )PsX&eti!th)*?@*6PsJ&eti!th)*?@97i3 )Ps$X&etei&ht)*?@*6

    Ps$J&etei&ht)*?@97

     == Crear '# circ'l !e clr r.&/setClr) Clr/RED *9&/3illArc)Ps Ps$ ?@ ?@ @

  • 8/18/2019 Manejo de Graficos Netbeans

    59/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

    7 == 3i# !el "(t! pai#t

    Pas$ ,8

    C"pila"s el pr&ra"a slecci#a"s el ;ra"e $ arrastra"s el pa#el +'e aca-a"s!e crear hacia el 3ra"e +'e!a#! !e la si&'ie#te 3r"a:

  • 8/18/2019 Manejo de Graficos Netbeans

    60/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    NETBEANS PROGRAMACION VISUAL

     A.'sta"s el pa#el al ta"a e# !#!e #s "'estre# las 3i&'ras/ De-e"s a!ici#arci#c )* -t#es c'atr)* para el ",i"ie#t $ '#)?* para salir/

    Pas$ 08

    Realia"s la pr&ra"aci4# e# ca!a -t4# !e ",i"ie#t:

     pri,ate ,i! BArri-aActi#Per3r"e!).a,a/a%t/e,e#t/Acti#E,e#t e,t* 6 pM,er3i&'ras?/Ps$J?@9 pM,er3i&'ras?/repai#t)*9

     == TODO a!! $'r ha#!li#& c!e here: 7

     pri,ate ,i! BDerechaActi#Per3r"e!).a,a/a%t/e,e#t/Acti#E,e#t e,t* 6 pM,er3i&'ras?/PsQJ?@9 pM,er3i&'ras?/repai#t)*9== TODO a!! $'r ha#!li#& c!e here:

     7

     pri,ate ,i! BI+'ier!aActi#Per3r"e!).a,a/a%t/e,e#t/Acti#E,e#t e,t* 6 pM,er3i&'ras?/PsJ?@9 pM,er3i&'ras?/repai#t)*9== TODO a!! $'r ha#!li#& c!e here:

     7

     pri,ate ,i! BA-a.Acti#Per3r"e!).a,a/a%t/e,e#t/Acti#E,e#t e,t* 6 pM,er3i&'ras?/Ps$QJ?@9 pM,er3i&'ras?/repai#t)*9== TODO a!! $'r ha#!li#& c!e here:

     7

     pri,ate ,i! BSalirActi#Per3r"e!).a,a/a%t/e,e#t/Acti#E,e#t e,t* 6!ispse)*9 == TODO a!! $'r ha#!li#& c!e here:

     7

  • 8/18/2019 Manejo de Graficos Netbeans

    61/61

    TECNOLOGÍA EN SISTEMAS DE TELECOMUNICACIONESUNIDADES TECNOLOGICAS DE SANTANDER

    DOCENTE: ROGERIO ORLANDO BELTRAN CASTRO

    Pas$ 8

    E.ec'ta"s el pr&ra"a $ #s !ar5a l si&'ie#te:

     Al !ar clic e# ls -t#es )Arri-a I+'ier!a A-a. $ Derecha* el -al4# r. se "'e,e/