You are on page 1of 23
eee tile Harling Stream ‘= a ais Pee sth, byes, fem ole communication — path. Four Relationship o java Peeguarn with ~ ,LoDevies Input i if is ony information that a rneeded Sets by Program to complede ats eicuton. Oudpud i at is my information that ‘the gual Pram ruck Convey (Travel), to the wesc. text deck Joon tuhiles of te p Stream class 7 ‘Piewaschy io einer _ oxen object JH i [object > Piller Input Steam Bulbeced Trypud Stream & S Dodo Tapa Stream Line Nember Trput Stream —__ Pushback Tnpud "| Stream ByleArrey Teput Stream Object Input Stream Shing Bellen ovdpid Stream * — Bu leRray Ovdpid Sheen piped Inpud Sheam - - a me | pipes bike is a _puin af choindl_ox a wucitable sauce — chawontl aang => Sepuuanced Tnpud Stream | as Sauget choavicl Bafa Data Oudpud Stream | rind Shean ade Objecl Oud Streams a 44 Med piped oudpd Stream” a ee ——— 8 — ee ere Ee A pled ib js 1 x afetial type of page “fhet % designed — the web page to fe lyncomic content cf Scum _ _ Me brouser amd _worke at client side DY betucen Hi _ Aplin 2 Fppleteee 7 | —Aiplcabion Dido rok use ~ynain [ey Applicalin use mithad ox “ndiasing ——~Ynain AREHRE to te extuion- of — te code. | Stas _ extuhion Applet shen Leaded | — *t- code gudsrnadically calls cosdaln | - ywethad ef oppler cllaks| 4 Stadt amd excule [ oe a Apple! eode | Boe eal Applets can't Cowmunicale sey” olen serve on the retwork © Applet Comnot Seu 09 aod Pragrom fm Socol compiler fon Com Sum independently (i at fvom and uuseite 40 file, im Jocal Compal cation unde osks Seu. can excubed by browser Suuning any platform ike Mac. (windows. Linux etc. cp Paging songs oh Pople = powers Frday 14 as Cherd side go" Lexy geoqprired ak chit 45 bvouser_ to cexcute the apple” WWhon 49 ‘905for5e dime take. Zune kk use applet = cy) When We content the webpage. —— Sub (hon tut Seapaired Sort fo be _ induded om 16 imeplemend Some dpe 7 —Jilion? play $0! jung! etc. \ | , , i gale ee "q inanl io Cale ag @ Save it 7 te fage and mmalevg me | zhbl> , on ~~ indevved for us by Obey on tein conpuler, £ —_ tat daa agen ede aye, Dowd Hat Ac town fe void print ( Goaphis 9) in —applen = a = ee ge dyes shing (“Hello 50, 50) 7 ge Coe ee y : impoxl java. Qui- : 3 j ae ‘pet Re, ad /® opplak code -“mycloss clan” heght« "4: S : welt = F087 > Java eyelet. pave = : + - —— - i 3 Public—edass ; ray class exterds oh ' jos ' i: ’ . JUL'7 Ea : Compile 3 jose 2 pryclass, Clo a ae applet views wy loss. java ord Ohl! Vie Wee app. htrk. — Abplet Architeclune + Java opalets ase Bssenci ally a jaya” x09 x0 thed Stuns within a ticbpage | Applet program ate jaua Classes thal 22 extends java. appled. Appletelayy Ose rede by — Sconce tathi a HTML page. a The opplet cmd ‘thei cast file axe dishibuted tisaugh Ha Stondlad a 250 foltp — sicqued ond ther fore Gm be secuwed ALnoss piretsall with He wuthpoge data 4 Satuday —_— f Suinning wa ting uebsit me ! posting 7 these fey oo. | ull application up to dat a 2 client clesktop on which i tt bs Ss Apple Code ts scplaced a really _ ga The state © om ofplet becomes” aE jonecolely offe sah SE then ide Stop Seung fame | gate: PA Palink —aralied method. Shopng ofcuss — Cadorraealt, called 40 taken ue eave page Cordaining e Syke Public = cussiendly sauving opplel wt Cn algo $ 2 do so by «calling stop 0 explicity 4 we usc a thvead fo sun oppled | then wie mutt UC Stop to deyrinale the thetacl. ue cam Achieve be oo 7 Import __jova. aut. » tis By oueriig He skep atthe | ~ Inport “ae ppl ———— Saba — eo Public void Step U | apglek cade =* Lifecycle. clos” 3 pudth: “400” S // Code for stop height “400” 7 © g ' 2 /opplel > : < +k J @Disploy State :- am applet nove to iS class Lifeeycl extends Apald dis stode hon — id orn : 5 * Ploy = ; a: pfor “Shebg ame = ralls Oedpal operation his happow oid ink) —— —— = pame = “Tynou" 5 x a Se4 Beckgrond (Color. Cyn): @ 04 fey we fuble void Shenk 0 = 7 : 3 [se (° Shas pcthod”); ; public Void Stop 0 5" ia seo Stop need" J7 som f == ae void point (Grophics nS [ J choo Shivg ( name, 108, 125} AUG'17 ay ey 3 © o*¥. obtain Gystens epee, color com be obtain Wa 1) using 0 operator foe = ag erg] colex Cz = new _ colox( Heal, Poets sy) | colar CHM ~ Color “Yello oS api sao in yey wait, eli colox clase _Constuctoy uch — ap pos __Opexdder ee Cine g ity) | —_Teay 08, @® Using color Chass Stole vasdable “Colo. ORANGE, Colov. PINK. frokteis | ax UAC — ee | , * OM - Obieixing fox Fon On pH oo HEE a Frday 14 € le coun obtain font to ay Gs weit im fost object uring font Color C= hult® ——— Class consfuctor: Pobic vod inal U : meri 5 $ _Syrday - 8 fy nw ford (" money pe col, z a fy 2 treo Sord ( String fontrame ia Cr nds Color ( [00 120, 86), fochame Stabe ind size) 3 Back grtud (1). alas : ‘ont. PLAIN | . ie (Graph i |= fod BOLD eee eee pcs I— Arial I Satay nore Trahuoe — Fort STAlsE— | a Bul ford (GY: weomra Ta / L 3: ~ Ad toler (Color. Yellow): “ye Ronan 7 ge — chroa String (™ Helo”, toe, So) + fe import jowa aud: " a oes J eae arts - ae ce ¢ < Code = * Mpplel6s class” lth" us ——= FA used methods of — pha G) pibbe alse a AesisOval (XT 1) Public abstract void — dbrowStri : At ux to draw Oval ah ( a( Stig ge > saith specified ivd a fei amd width. a clraw He “specified i inte ia oe > h, 0 public abstradl void A Oval ~ 5 : x (2) padlic void chew Reed ( ind x | t - i 5 iM hay > uk ust te EU Oval ith defeed ow, amd spect tice! —_haighd amd wid >A wtf aw —Hechamghe “iy — | ee aoe ia a gh —~ toil ser Spteifid Height amd welt. | (G) public obs ye BD) te inky, i iN S) Abbe abstacl void FL Reel ink ee u > A we to “dros (ner bhi. 2%, f fi = amd Se. gy. z =f LAL o it Ya! th Stah He de fou ld —_ — A @ public abstract oid clvaw Are (ix, y. on hes oe it, inth, ind Sood oe : inl dd Avge) Dae to esa cheba or — | liphiche Ae ak use Cusscont fc Color $3) public “abshaed a CS Cusseend ford Bad import java dud: 3 fempord JONG. apples 5 * / < applet code = “Graphics Cx clos? | . height = fe ars "7 Dp - Monday 29° Set £ publ: void B Cesapla : 9G Pet Clor( Color. aed). Q chevshig (“leleon”, 62,8), gdm Line (Ze, 30, 26, Boo) g- dveReek (170, 190, 20, %), g FiMOval (7,200, 30, 30) 9g 24 Cobs( Color yellos). 3 GA_Aval 1170, 2.00, 30, 30): pas ge dasuhcc( Go, 15030 20.Fo}; ysl Color ( Coles. green) g Fl Are. (2.70, 180, 90,33, 3 extends zLonv | i nation in ~Ppplet = — smpbr i und #5 > ioe Sava apple: t bi Ab Ls clas Arimation Applet extends as puldlg = wath AT Paha ae, covteinoes 4 reel to perform the following ‘2 Sheps. : == # iy _ Creede om object — 2} the coxah D | Oy ee 5 (iiy okt rch be conan | Tmmage image publ void init () is AUG'7 imo: gelTnage (get Documed Basel), “bie i 3 Convels | i = clas | Porch ong 7 peble void paint CGaphice gy = o Telbo, ; F Test field - a9 es fixl jwiso; (e2soo; ae — —— ee | py Bee a OE | tte Teens |e ( : Ihswed, alee (Joo): } . - Catch | Terrupled Creceptio je) lb Pash Batton —\ — Budo» ( Sop Lie) | apsastor [Ooo (ivy check box a 28 usin a Check box 0 : be een jmpost java. uke 4: \flatobalr Cech Bon ey = elec) hort Jove. applet a: > 3 tute Check Box! i fata t jp —_jova. Out: Cverd 8 2 Yeve = “Leginfp: close” boiohte "foo" aid et 4 Ob EIN, | Az oped ode = “hep den” Heghte tor nada He xcept tal af 2 Joppih 2 ~/ | J: Fuca public Class Logie extends Alpplef u Ption, ¢ ombaBox | —CombBox | at ate | ———toker tn = (als Soros i (es tok Fidld ta do. Tantey 31 seas Set — Buttes by. by eae oe ‘en public void nid VD ollow 7 a : 5 yeh. Lojoud (mi): - = iz Uist Box Lick Jaz we Label (* Legis Here”! il sintla to | Ly gel Rounds (96, 50. 100.80): — add (Ig): roa | Qi, = was Lolel (*Usexnene “Js ‘ Sigk or Oy = ssl baws (80 Wea =) LY idem. : 5 Text hele (30)3——— ple fem es” | __ y= mato Te —— ber bathe st dg 1 mackics™ to genesade n,m 04 nents according. this ~ . . new Lakes Oe tg Que 3 Bowrds( $0, 260 80, sa Boe new Text Feld(30): 4,14 bounds (180. 280. 90, Be). addy, by 2 noe Bubtor( “Login”). b1. sefBourds( 150, 35% So.595 ~ 6. new Bells (* Exil "): Ch} by acl Bowds( 252. 356, $.), ddd (b, ) scl Visi ble (rue): process z SOUnce generates am ouenks and gon it to 1 or move Beto ths shoe Sa tg until it Seceies_the — puenk once an overt — Seeceives the __Sistenor practi and events — amd Sichwuns - the —achouleg of “his model “isa Hee applica | uahich process a hed ig ~ Cleoaly seperate pe ier trod pes those | guerts, —— | af (ox piSoue O=2bv A By een intesfoce . fuer 4 - stare Or = ba) dlelegate the protest) * va ent Ane : vedo) oa: seporele peat oh Tn tas model Jishes mM a : ~Sowtite mm “ondes, — Saute n= SEP'17 publi void ahs Pfu Redetved a) ; : to al is Suen! — notification this model ing i > Void — Logi 3 septxede pases “eh 2 ching ames ty. a6 toy ~ an vent isan “hy String psu: 4,. 98 thot discxibes g Ste fd mI (mone - Cgneds (“age ys | 5 m9 Sousee thay Poss. equals ¢ Ry : a se : g Jou Suig Topher lame Shoup, o An duerd sounce eae % (ww Legin SeccerJ “oa dean a a the genosecte an Ave ols Javer Swing Septic fone shaati., occu tahon iden nal awl : Ley cz Dialog CRali Corey i Lie) chang in SUS Ope eS eect F 3 Pn ved void —exil App lL ane an. _object thal modify shen z Syale : : : - exid (0), Qn gent pees itt has tuo” 4 sien aa 7 rrejor — Aaguivemonbe ae 8 [ena | clas st mud —hewe been Segistered 4 - ieee Ox —_maxe sauce fo guoegive wae hobficalion abou Specific a tut trplonact — wmothod 4 pea Skceive —Ond—_procass those nodificabin | Se and ~~ ——=> = © out abshact — tinder balky ns i a 8 aud Components — a hed : ea Conpontnd forteds see cloveloped igi foundation — classes tuhesce QB aaa developed Java peas. 2 classes wud native methods. Suing uses yMbC__-mmadal there ay cua don't ake ut. = whose ay dies Pell ac Staines “9 5 os Stemdand gong ofp Teen method exeule Hg melhed Ouk don't ox Cute the * maa Posen ft meted (xeating Ae Frame in Suing ae sd Java. Suing. #; class — Leginfiame — _ortends 2 PMoistirdoy es JTerdtfiell 425 “Password to + abel 9. Sa: i Fro Hite Bo poblig LoginFrame (Strig name) Bupa (rrorme): a Qt 4s Qze ha ba= ad Sige (500, 500): mew Thohel ("Usexnan) , a 4 Mites 19 i oport jane aud Ox: EE oy b JFrame \. ky 2L.das Tossty 14 setlagod (‘Cridlagou (3,2) Jo" oda (4): wow Jenfield (30): add (44), ner _Tlobel_—("Passuord”): gad (12): = nde J Possvedheld (36): add (t2): _ Bt. add Acton Listenes (this ROI SBublo (* Login’) h odd ( by); \ Bee af [rome egal) BC LEP Piss. agua” POR) z ‘Topton fare “thouMessg Dialog a Lage nod MainbJinclow eR Ms Noy 0: | ble new ate Con" 15 ee) 2 add Action Listen. ( i (el Deft cle fad TFs: ‘sed Visible (hae) ? _ psum( String angst) . Matrboinclny ou( May SEP'17 noe. af £ ae: gel Sa meee bi) a begin (Qs —_____ = od x Lo a fields — “provided _ by ae static fival “int Lege? 22 7 Slatic final ” RI Gh ” CénTer public an : » » LEADING ™m in pasdiculas — nasnner ud ati Lat Ranga? © a ma thal 1s implemtrtel by all 4, é i shes rt Loyoud Mamgen there aarp I i TENg = following classes — thal sepresenk: 4, “ r a layod Man y ges Conslrucler provided zl — i “j — Plowlegoud class = F--copapeenEnnaEa Oat creates “a plovlageut : fuk tat theriasntel ard say 23 Java, aud. Elocileyout (iy FllousLagout epue —usith contre —_alightwant amd a Tava. aud. Bordesley al ft), Tova. auct- Crrid Layoud (iV) Tava. aud: Casadlay out —— f verdical — gop: - (Y) Tava « aud Grvid Bag layout —— | ciiy Flew Layout (mt align) == it Cree a feolgat with — given alignments (vi) Javan. Suing « Box Layout a fp and. a efor. lt ‘ tunil___hovizontal and _vertical gep- : nn #4 1) Flow Layout remedies Miclece ae: an Dy) Flows Lay ouct (int align. id fagep ink vgab) a- ploulay out ~—onith giver offer amotex in a a given havizontal amd i —_— = WA creabes alias Ey. import a public class MyFrare extends Tay ? qhutlon jb (595 z My Frame (Shing vamed D = Super (neme)- selSie ( 590, S08); for(int iso; 1282 bday fe JE C2 nee —gBallon (6Ve (© NoRTH @ west @ Centre Cach — Seegion’ ray cortoin one componoudd only ut _is defowlt Loge sf frome oy Window 1b _ provides 5__Conphaint fo each —Pegion.. z _ NORTH 3 r = mr P ublic : Stakie. Sellout (mew Floulayaud (Flee: a “public — Sox(int iso: (es ite) mE ee yy EAST mea Sei) yy test i | pbc idk centre selvisille Gre) | Con hruclor provides by Bees Lagat * pam (String gs CI) 5 MPs "Flo aged”) [Bore f, Ente My Frame (" Flow bayad 2) Ss eee _ a || in GrodesLajauk Q2= Sk caeoles a Borde Layout With no gaps blu. Conponans Borden Loyout (it hgop. 4 vgop )* {t creales a Bordestayout sith Ea “en hovinodal ond verdical ap am Fo ised 45 GE as plese Lewout = Component —; Chama seclewgulas gid ong Componsile Sor( ind i20: LES: Leey in cach display = jbCI= neo GBs (0): 3 Constructor provides j i idlayoud (J Sel logon (neve Bordos loryous OU), tor Ti 10 wah 7 Grid bi : One Colimn fr add EbeI aa “NORTH Js tpl — Epa pe add j6C41. Borde itz Godlee (to tbevdes a Caga “Bel Visible (rue ) at with given sow,” 08 And Column bul mo gop: bho: Components . - | ily GridLayout (it wow, jt _Codsamn int hyep nt _vppp) *Crecdes Grid Loyout uaith given How md column olorg ith giver hovizordal Gnd vertical spare. a. ay jnport java - ee aftr Jb 16) Suh 8 mann tl oly yg Myhane ( Shing hans ) visible ved aT fy upon (mavme) Componted as 4 Cond thad’s 8) 5 sel sige (502.599); is Kens as Cov Lag, | : a ia tes pam | pote poo Balto» (i); es O:- ut aus Cronk wt | — 0 horiaonal amd —_verkical_ gop. sal leyou (noe Gridlagoud (3.2100, 0), —— Le — | Cosi Lowout (nk hgop . id wpp)nc reales aa for (int izo, ice sity ps DEP YELLE Gay o ; ; a ee with given horodal and | | [ add (566); = vertical gap. - apm | , aed Visite Une); 3 _Methed provides by “Coad Loyout on wo Next ( Cowsoins _pateord) it inn 08 used to foe the next cated of He __ giver. Cordob E j Pa (Shing a5 (3) Myfom 2 neo Myf ("Grid ) j ; nat A Fi be vous (Condairer asont = it We 7 lip the —_pyevious Cod sh giver Contatner wii) first (container pasand) t= at Used 4 . pip — the pivst cand _ of given condones. i) last (eodaie part) it used Fo hy He — Sead case! of given confare. ocT 22°¢) Show (codob passcthy Shing ana) at used to pip specified —caag uth given name. be impord 7 Jova + aul: eyed. x impor - joe: Baleg. #8 2 import Java + dud sje Pebbe class Myfor extends Gear ———_inplenets ——“Aletion Lifeng ie - Containe — Cp s TBullon. by, bs, by Cosdeyord c; My Fro-e (Sd han) $ Supe (rane) 5 a Sige (40, 400): by = no J Bator ("Bubtow 2"). Sere 24,190 bs Perot = gel ContentPane(s Cp--aedlayou (c= 20 Casdlagout Osan 12 Cp add( “a”, bi; Cp. odd “4 42): ad Visible (Frue)s 3 Z public void — Action Pesfemed [Achis»Gre ax) ‘ zi HO ieeeeteretartt [ Coe {Cpl 3 : Poy (Shhg 04509) My fee Spee Py fon ce Ds oo ee eo

You might also like