Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
144 views
44 pages
Advance Programming in Java Pokhara University Solved Answers
Solved Answers ( Advance Programming in Java ) of Pokhara University.
Uploaded by
aditi.adhikari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Advance Programming in Java Pokhara University Sol... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
144 views
44 pages
Advance Programming in Java Pokhara University Solved Answers
Solved Answers ( Advance Programming in Java ) of Pokhara University.
Uploaded by
aditi.adhikari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Advance Programming in Java Pokhara University Sol... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 44
Search
Fullscreen
\ 2016 - Fall == 0) Ame various windows \fovdanental areii( put) \Y WmPonent iy uataimey iy Panel union Window: li vy Fame. Sad Bi vy Quva uw hy " " s Diolog vox Wohwe iisparsmall ‘aropntcal Window) nat displays A mesioge to tne wen BY veg west’ input: Two dialog, boxes t Aolog: a diotog Ox -matdue plays A her age Sapud Alaloa,: a dalon vox nal ‘Prompts Goud, Ae wren for bvent Mistaney in Davao desiqued dp woam some Kind of event- ft Bilstenes' for av event eur as awrerd mouse dickod ora Key premsyand men it wespowds .) accorollualin, And WO Ken, ewing forhunw in'dava ane: Swing vemponenis me Noy wefgnt and dowit velw Ov peers. Lwin, su@Povts A plvagniole look an feet. Scanned with CamScannerE Cul Slawel ; Slabel is Anss e| swing . Slabel te me. b Alsplay aA _svort Sst¥ina oran inage Teron. Stoel an Ateplons bok textiand “tmneae, S Lass lum: The uass imageiven te an om entation ef tne fom, intents! tat paivis ivan from imagen Pavam“nins wan pe Mssed ® au applet fyom. — A HTMA page. Pavawntheis——nre—presek—ner — To pass ane. parame j2sitd the applet we — need 2 wre) param) arbibute of
» a data tier Three lanes tr tme tured || rien _avusttecore ane as follows: Ty Ufent layer Bvswors oer oka loner K is alse called Presentation layer wytdr wmtains UI ponk of Ow op plicatton- IWis aver 1s wped for desfgn purpose ‘we dain is\ presented toduo urti_ov input te daKon frown. fuser . Fo .+exk box, Lawet button etc: Business layer + Ln mis lane al wesivwys lopte writtaw hke valida’ ct data, calulotian, daraiincertion ett. thks acks Gp imierbace beboeom Okork Lower ank data lay {wis lamer js): 0490, called tne sIntermedanm 1ar Wepe tOMAKO. | Lvommuniuation Faster pemwtan ont and data lower. Anis wacked» datalo ane, Loney In ne \ _ Dakn accom layer comiaing mekwods ott lugdQXh , ddlite aA pet, dakp Qyown _abenvo-ow Scanned with CamScannerdon own input data. 1 AOE application . = Mineo, Hen avohiitedne . mols he steps fev" writing a Soviet are: Create a ass -nat ‘extends HUpSeaviet ay Define 3 metuon: v Wit), doGert) and do Post) yl Tere ra an avlek- Mee Ave Alled a3 callback a tb IMé | wo iner ji heal avtot Senvie’: Scanned with CamScannerfor a | me. GET nog wssts, Ane weld umiainer imvoKes Ane .° Ao Gebl) meted and fov 005 T mequocts in Wwokes te doPesty) mestnod - ud wir tb phys y 4 és ' ! “ - t iu \ phew ! i er 1 Lp by Hat 7 1 totes bet 2 i \ ny 4 let 4 t ; ' f \ ’ ii 24 Lat yi (vb ; } a Scanned with CamScanneron Qi soec stands Oat vit a vonida 1s a technology twat alles. Java application, & dn: ! i ~llintenget with nelational datavase =| exeutt. Sq. —queniea_againsk datababes __— Qin tne Sava Platform, Gatien prise edition a depieyes—- zent_deacripree _Aeacribes ov a temaponent, ~~ Compile me Opelek _Sarvee ode using javac Open ue Whi fie in me web wrowbser “owing Is built in Awt" pecause: Swing lempourents one right wetgnt- = aa i swing supports pluggable. look. av feel initt) metnod ef Servlet geks called wnen tne wach svovid initialiae voriavles. Scanned with CamScannere=d The advantages of ssa SSP one: Tse Page —ANe dynamically uanpiled._ivatp servlet ‘eellione (ta\se) method, we can wake Buy acias, iw Sava swing. text feild nem editable. a "Seatiohet fg a pie of Sava _vode saat represents 4p aenerate and display the procnrsing loode dunamic _vewient when nerdedin the page . i Sywtax :
objett oriented SP 0006 ve provedueal — Scanned with CamScanner=o Wea Ube SOBC in any 6ywe can Use OD Bo ive — plakfor vm Only wy dows ————_ 2u i platform: Inwoduced by SUM Mino zy Antrodurea by Syptams Ty 1997. Minosoft In 199 +h ot Sy oBBC wines neguinve manuel insiallation, + manual inerallation - Sy TOBE fo seumed is ST OMSE Is lens Secureot:- qnl steps ‘to \wnnect © dataloare iw xaw ane: 3 Register me driver clacs .— Wsing foyNamel) method Create tne _connectfon wolojecti. get “imnechion () memy of OiverManagnr dass io wred Sue scp (uate me! statement Ob\ect + Creates iatement() mackncd of cennectton Jutemface is) wed. Grete me Quny.= exetuke Quorn () WRIN Od. Of Statement jintertace ie week A0Ee Ne LUMuettion Proj eck * dO2() metred af umneiion _intevface is uned Scanned with CamScanner~Qmols* a Say Re | S266 appliation servers: Unlike simple java programs , we dow 't wre —java__uemmand to exresuke tne Jace }—applicatious, we ure epectal program. Alea - Howey we wre sno same old jame — - vemvnand, to wempile Me appiiahons - Paneer 1 - 4 Ts A_earvt S266 - _apylicattow'. Tis te ie pug mat rons E Aner enterpribe application on me intemget - a S26E Ap pivation Server 1s weadwyads. | istica p : + will ne. r yYOUiall me: REE uapalicachion 3 ~ Thre ane: eevonl free and vemmenctal appli'catfons servers available in-me wwarket today mat cone developed wn many well Khoon _ what is _dme__punpase of Aawe lopiva tne Sa senvers? lope, Sonminoseft first fee ee ame votonef _ TAGE plarform mat can be med to lonfid tne — eine Lente py ise ears ta Sava Scanned with CamScannerBere _-~n. eR _recnviolo, nce om NW tank lost onus: | ! ication. \uild tne t : T2EE Nealon. Senver o 4) WnIdn Means MA be bs Scanned with CamScanneras i Panel ySs anit 1 2 | frome _is an AWT componnnt. wll Is an_Awt weich's o bp level window Represents a single. wit wordler ana title. Container +nwak aw : aba of (422 ompony 3) fame to a subunss of 9 Panel ba subclass window - ‘heel ‘ st umiainn. Laterfor ane: LY Ke vote be ay pubic ed Event. 3y|_public absiouk as wo, ednagebn ge] 3.|| A seaviet fs a serven stole Java progroun amok procure HHP nequenk and gencnatis Up _neopouse - ane Ano types of apple ang; doch apelek de iy Remote “applet: Scanned with CamScannerG29 Brent: Source : Bvemt source _ is an ovjeck onwhidn an event ours» Tk is nesponsible fer providing in formation about occured event to [ts nandler. Event Aistencr: Evenntdistener im Sava fo Aesiqned to prowys some ina. event ~ Pit “Iistens" fox an erent Sun 0s str — wouse Wicked OY Kentupeol - and +nen it nesponds | accordingly. uy window usi ror ur _cmatret witwin a windsw by using _ J semae_kind. 4 |_alagoritum- The Jaanouk WAVaQ 2» Jo sek vous 6okdosacuk () nattnod - pa fae ea io : } GET ! Pos T Oulu ASCII cnavacters allowed 2 no nesmiivon In date type, Viva data Is auUowed - Dakaisvisiole bo everrpnd 2 Oaka 16 not Usp layeé | InuRL T4 URL. Scanned with CamScannertr |_A scriptter 15 a plect ef jovavede” nak! 0 ~T [ts _nopresonts pyoctasiinay Leah. tp genenaieiand *_ Ms vlan " dynamle “veténts | whon necdesk - tA _4né page: lio i a } L ‘BY | two Kan feahines cnt vic bam eer 1p] Sving vemponents’ ane Wantwelgnt ay Swing supporis Q pluggable “100k. ard feel 10 iar ae eas aa aioe YasHpu one: d } G sf aie Alf i fi it Qutonis ty) 1 foagle boHon 2 A single. 9. FB toggle buHon Naw + olate: two states pushed one. | woe iA _or MOE pusnadlin Scanned with CamScanner(ised) : frais i) \ Sarted i fev 13 a i Sain “ ere i ys ine _-me following metnoo’ ano befing calle d in, sequence: Wed: the init) metvod fs me fvat metnod beiug called: This.is me, step where we snovid Initialize me variable tis metnod io allied Oulvy pce dAuving vuhme of an applet: Stayt) ithe stavtl) metvod is me seuma step of an applet. tt is called +p vestot an_appiet afte? 4 was been stopped: while vit) io called | one time wren applet te [oaded- spytO: io walled can re aw Scanned with CamScanner== applet HIML Oumont Se_dleplayed av sinew WM padat()- The palit) method 1s called each” shine wren Aw bared applets output yvst be yedvawn. The paiint() wemnod 4 . As ove _paparnere> _¢1 have dvapufcs YI Stopl)- The stof) method io called when a wn® Wel: browser kaves me _utml doaurent voutaining applets When 1} goes to anotner page for example diotroyl)~ The. destroy) metnodl is uaed wher ‘me enlornment _aéteemines ‘mak. your apple: must be removed _vomplete/y fon Me memory . impoyt. java. apple’ . Appleby Junpov yao. aund.—Grapiades j ____ 4 (i! e¢applet: code = “wre Param .Uass'! ywidt.£"300 * heiqnt ="300 " (etpavovnnames: “msg |! valne eHello Applee't> | Scanned with CamScanneran = ST = _T jop-SetPrapenhy = tulis action ay. ownt sipgests ts used” | to populake wwe pean ovopeptieain ne | Spectfled. supe. Syntax foy chats action | =<429: Set Propecty noun = a |__=“\propenty nawag valre = uli for example if we veed to_populate a lean whose property's fiysttmme wim a Value Sohn we use dtnis autPon ads svown beso: n jsp: Set Property naumg = Yuus!' prepentys \namse Jalwe = “'Sown"/ ace Mis standavd action fo wredlit? vestyiene 2 speckfied, erOperk, von a pean Wa. Specifies wade peta $ awis adton:
prsuing Scanned with CamScannerOz==0 . dont hota. 5 q A L a Lanroko 8. A server Side womponront aoe aia Xe bean wit all te information iELA__seansst or Sexson. the sop wl ten meriene ne bean and displays “ine Mformation © Uient. (Qde + QO\6 - 4, et ou eleation, taole, Ren Lo LO >in web lorowser using $SP~ x. @ page carentgonel Bost apo” pagee vitodki SUTe-8" hey <1L@ page isbn 5 Saas jave-vH ® 5 yave genvlek Bil). 2 f | Ooctupe nimi7 el AtwAl
You might also like
Graphic Design Level-3 NSDA Tools MCQ
PDF
100% (1)
Graphic Design Level-3 NSDA Tools MCQ
2 pages
M Nurul Islam (Statistics) 240116 224328
PDF
No ratings yet
M Nurul Islam (Statistics) 240116 224328
61 pages
Fahads Tutorial SSC Suggestion Book 2025
PDF
No ratings yet
Fahads Tutorial SSC Suggestion Book 2025
691 pages
Computational Physics Book
PDF
100% (1)
Computational Physics Book
307 pages
Lwanda Magere
PDF
No ratings yet
Lwanda Magere
122 pages
RU C Unit Q Bank With Model Test 2024 25
PDF
No ratings yet
RU C Unit Q Bank With Model Test 2024 25
190 pages
Kibaha Form Five Mid Term Exams
PDF
100% (1)
Kibaha Form Five Mid Term Exams
18 pages
Early Coinage of Bengal (C. 2nd Century BC To 10th Century AD) by S K Bose and Noman Nasir
PDF
No ratings yet
Early Coinage of Bengal (C. 2nd Century BC To 10th Century AD) by S K Bose and Noman Nasir
193 pages
Islamiat Updated Pakmcqs Notes by Shan Ali Junejo
PDF
No ratings yet
Islamiat Updated Pakmcqs Notes by Shan Ali Junejo
100 pages
2024 Computer Studies Paper 1 g9
PDF
No ratings yet
2024 Computer Studies Paper 1 g9
7 pages
CSEGYAN CN Computer Network Notes
PDF
No ratings yet
CSEGYAN CN Computer Network Notes
177 pages
CseGyan DBMS Notes
PDF
No ratings yet
CseGyan DBMS Notes
136 pages
DRS-211 Regression Analysis (Soft Copy)
PDF
No ratings yet
DRS-211 Regression Analysis (Soft Copy)
158 pages
Mpa 1st Sem Old Questions
PDF
100% (1)
Mpa 1st Sem Old Questions
57 pages
Ol Mathematics National Exams and Their Marking Guides 2006 To 2023
PDF
No ratings yet
Ol Mathematics National Exams and Their Marking Guides 2006 To 2023
195 pages
Anatomy Physiology Practical
PDF
100% (1)
Anatomy Physiology Practical
18 pages
Past Papers Chemical Engineering
PDF
No ratings yet
Past Papers Chemical Engineering
72 pages
Chemistry 10 PBA
PDF
100% (1)
Chemistry 10 PBA
64 pages
JURNAL MOOC PPPK Tahun 2024 Esterlina M.D Saragih
PDF
No ratings yet
JURNAL MOOC PPPK Tahun 2024 Esterlina M.D Saragih
10 pages
Ak-47 GK Book
PDF
No ratings yet
Ak-47 GK Book
147 pages
PDF No-15 - Vocabulary Q Bank Digestion-1 - 10 ( )
PDF
No ratings yet
PDF No-15 - Vocabulary Q Bank Digestion-1 - 10 ( )
411 pages
Computer Engineering Neb 2081
PDF
No ratings yet
Computer Engineering Neb 2081
27 pages
လက်တွေ့အော်ဒီယို ဦးထိန်ဝင်း
PDF
No ratings yet
လက်တွေ့အော်ဒီယို ဦးထိန်ဝင်း
157 pages
Rats of The AMV Community
PDF
No ratings yet
Rats of The AMV Community
4 pages
Camscanner
PDF
No ratings yet
Camscanner
96 pages
Computer Science and Engineering
PDF
No ratings yet
Computer Science and Engineering
384 pages
The Rules of Love & Life (Part-1)
PDF
No ratings yet
The Rules of Love & Life (Part-1)
90 pages
Past Question Paper
PDF
No ratings yet
Past Question Paper
12 pages
SMA Book Technical
PDF
No ratings yet
SMA Book Technical
238 pages
SPCC Full
PDF
100% (2)
SPCC Full
133 pages
Engineering Graphics by Vidyalankar PDF
PDF
No ratings yet
Engineering Graphics by Vidyalankar PDF
148 pages
Applied Biology - SD Short Note
PDF
No ratings yet
Applied Biology - SD Short Note
14 pages
Gunaratna Nepali Slok
PDF
No ratings yet
Gunaratna Nepali Slok
86 pages
Matematicas para La Administracion y Eco
PDF
No ratings yet
Matematicas para La Administracion y Eco
915 pages
Computer Science Topical P2
PDF
No ratings yet
Computer Science Topical P2
487 pages
CamScanner 21-05-2024 10.06
PDF
No ratings yet
CamScanner 21-05-2024 10.06
9 pages
Adobe Photoshop Tools
PDF
No ratings yet
Adobe Photoshop Tools
75 pages
Ilmi mmp-1 Book
PDF
No ratings yet
Ilmi mmp-1 Book
252 pages
Festival Fun
PDF
No ratings yet
Festival Fun
11 pages
Warmup Mock-02 For CLAT Preparation by CL.
PDF
No ratings yet
Warmup Mock-02 For CLAT Preparation by CL.
43 pages
Tema 5 Citoplasma
PDF
No ratings yet
Tema 5 Citoplasma
30 pages
L1 Pharma
PDF
No ratings yet
L1 Pharma
10 pages
A Kitchen Love Story - Sue Leather-1
PDF
No ratings yet
A Kitchen Love Story - Sue Leather-1
27 pages
DLD Notes
PDF
No ratings yet
DLD Notes
87 pages
Web Kit 2
PDF
No ratings yet
Web Kit 2
157 pages
Computer Graphics Techmax
PDF
No ratings yet
Computer Graphics Techmax
108 pages
PPS Lords
PDF
No ratings yet
PPS Lords
62 pages
BT 314 Test
PDF
No ratings yet
BT 314 Test
7 pages
206 - Compositing With Adobe After Effects Sample Questions
PDF
No ratings yet
206 - Compositing With Adobe After Effects Sample Questions
1 page
Assignment Photoshop
PDF
No ratings yet
Assignment Photoshop
11 pages
Assignment Photoshop MOHAMMAD NAZRUL HADI
PDF
No ratings yet
Assignment Photoshop MOHAMMAD NAZRUL HADI
6 pages
Qrea 108
PDF
No ratings yet
Qrea 108
8 pages
Assigment Photoshope Syaiwan Bin Shahruzzaman
PDF
No ratings yet
Assigment Photoshope Syaiwan Bin Shahruzzaman
5 pages
r05311902 Computer Graphics
PDF
No ratings yet
r05311902 Computer Graphics
4 pages
Computer Graphics JNTU Question Paper
PDF
No ratings yet
Computer Graphics JNTU Question Paper
4 pages
Assignment 2: Image Processing and Computer Vision
PDF
No ratings yet
Assignment 2: Image Processing and Computer Vision
7 pages
ICT171 - Introduction To Server Environments and Architectures
PDF
No ratings yet
ICT171 - Introduction To Server Environments and Architectures
38 pages
MWOC Unit 3
PDF
No ratings yet
MWOC Unit 3
52 pages
10color Image Processing
PDF
No ratings yet
10color Image Processing
80 pages
Sony Handycam User Manual CCD - TRV228E/TRV428E DCR - TRV255E/TRV265E
PDF
No ratings yet
Sony Handycam User Manual CCD - TRV228E/TRV428E DCR - TRV255E/TRV265E
100 pages