Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Vidyalekhan

DATE
PAGE

Tutosia
what axe Vamou5 AdT Nent dass.es cnd
theis methods 2
Following ce the Vanau AWT eyent dlabs%
and thër methads

ActionE ven
- methde
Conseme
9et TD O
s 6 lonsomed ()
SetbouoCe
2Tnpt Event
-methods
gtnodfiexs)
getuwhea)
iSAHDouon )
15 (oota/Down
6155hif£Downl
Keu Evant
methods
etKeychax
get Keyode )
get KeLocotonQ
u get KeyModifexs 0
6 set Keyode
5etKéyChaxO
S) getKeTex
Vicvalekhand
DATE
PACE

5 MoGe Event
-methoods
getbuton)
getcicK Coont
3qetLoCccthonOn5(xeenL
9etx )
5 get y1
6etPoin0

6 Adjugtment Event
-Methods
get Adjustahle 0
etValbel)
eFValeTSAisting
yetAdjustment TPNY.
windos Event
=methodh
getNeo 5tztelO
getold tate
4et Loindouo )
get Oppasite LIndos)e
Vidyalekhand
DATE
PAGE

2 i s t out vanaub li5tenes intextates and


methods beloy to thct libteae intes tate.
Adhon istenes
void achonPes komed LAtonEvent ae
2 Ajstmeat Listenes
void ladivg tment vawe Chanqed Adjustmnent
Eyent ae)
3 CopPoneat lihteneX
void comonent Resized (ComponenEEuntce
Noid ComlonentHovedLoponentEvnt (e)
Noid
Noid Comonent 5hown Lcomponeot Event (E)|
Noid
OmponentHhddenlComponent Eveat (e
4Contaunes Lihtenks
void Coponeat Added LContzunes
Void ComDonent KemovNed Event ce
LContainesEvent (e
5 Foto5 Listenes
void focws Tcàne& Focws Event ke
Noid ocus Lost Cfocublent fe
6 ItemListeney
void item btate Chonged IteEvent ie)
Vidyalekhar
DATE
PAL

7Key L6teneg. u
Noid KePreshed CKeyEvent Ke)
void Ke Released LKey Evert ke)
vaid KeKeleaged
NDIdKT2ed (KeyEvent Ke)
8 MousRLStenex
vold mouse Clicked Mouse Event me
Void maube Pseshed (Moose bient mé).
void mouse Releahed (Mowbe Event me)
voLd moube Entexed Mouhe ENent me
void movse Exi ted Mousl bvent me

)
Vidyalekhan
DATE
PAGE

vcaowg Contawtor af Iacbel cdass cind ity


method
Con5tbtox6
1Label on5tauts emty
2) Label(5tmng txt) Lonstzuh Labe
Label oi
qvln5imng
Labe l5tmnq tat Conbtadts Lahel wit
intalianment)gien Stnng and
hven audnment
ethadsb
1) 5etTent (6tnng txt)
2) void At setAlanmentint digpmet
tmng getTeatO.
int YeB Aliqnmeat -
VDid add Notity
J e tAcCes5ilhlk Lotext ()
ViOyale a
DATE
PAGEi

Con5twcoxand jt'G
4 BUAon da65
method

2ConGAsucH

hew buton Lo
b u t o n Q - T Longhuuts
Emty 5tn i-e (O Label
n
txt)- Longtaucth ne bb»-
BUton6tang
with giVen btnns -

Method 6
void set Text 5tana at
5tnngeETert
void abel O
get Label )
Enn4
void 5e+Labellstinqtax
5 void add Notiy )
yoid cdd ActonListenks (Acbonlisteneg 2)
get Acbon Listenesh
oidemoNe AttonLstenes (Atbo nlistenRs A_
VidyalekhanR
DATE
PAGE

5 mte a tutoicl 10qum ohich will_displa24


the Can tent like nae, Phene no add Pbh
gendex Hobbie it you cika buthn _wmke -
thRCeoteot in a Ele

imoxt aNa-anlet Applet; e


HmAotjca-awt*
motjawaaut.event. AcionEent
motjaNg QuwteeatAcbon Lstenes;

upheoass a5 exteads Amlet 3


Label l1 ne Label'Name boham Paxah
Lbe 2 =nes Label[Phore nd: 1G0277A)
Label SE pew Lebelrende Mae
Label 24 =new Label" Hahhies Andseld
Dewelopment, GqS";
Lehel L5E neo Lcbel(pmnt 5uccessful),
Label bl = neo Button Pànt Details)
Oyexmde
ublic noid ini 0j4
add Q1
add
add3)3-
add (4)E
add L
L5.6eVsblel kause);
addlbl,
blgdd Ahonlistenes nes Ahonlistentol)i
@ONensndle
Pobl vaid actoneomrelAchoncvet e)1
PeotosmSlewnte D,
Viclyalekhan

Ovennde
pbli void puntGragiis gli
Q-5Bownds lo,20, lood, 13
02.het Boundso,Lo,lo.oo,Is)
3-5et b0Undslo, bo,lo0o,18)5-
14-setBoundslo, 30, lo0o, 13
Ds bet Boondsllo, l00,loo0, 1
b-5et Boundsl50, 120, loe, 32)
blbtBakaxmund (Colox.(YAN)

Void peztuxm Eleom te 0j


Ele Outp15txeam toh
ile le
5targ alllabels.Info= 0lgeTeat +(n
PTet 2getText +('n) 3- get Tep+t
(" 4 qetTeat

Lle =nky Eile ("D:/sthhenDetallbt


tobngo Rle t tram file)-
byte1] bytehduiabelsTatngettes
t5mtë lhytes)
L5-het Visihle tue .
Cctch To Exceptoni ií-pmnt itaukIael

You might also like