You are on page 1of 4

5 CaidLayou

tauoul mangea n at ly
aecdcunrulan "d.
onenas co mfonenle
i0

is pla ced io
eachaec anq b
0n Cevponent

n euo idlapot
SetLayocttC
C2123)

lmpodt Java awt. *,

fmpeat iava appul.*,


buc cass Gaid exlende Appte
Pu

void inito
Pet b c
(3))
SeflayoulCnuw
GoidlayouB
Otuv Bettton (" clict")5
Buttonbi
6uttooc
"
ubmit");
Bution b o ew
a ddC bi )

eddTb), addcb?)j

zhtm h ug h f loo
loo

Gaid ctatt nu ghf:


code
aP pet i d th 1DO

clappul
2hlml
CaadlayOut cob]ect)
t s tayoul manqta to coot otu a
t tseals eacD com po veDn Co ofaineRa
a Cad d on 0ne eand 1 ViS isibe al o
1ble al
tü th
are pla ced W
tet Compo neot e
al
yop
hoizandal qap to) yeaiC

m poat Java. auot


tm
poa java appuw
Pu bli c clace Ca d extende PP

void init
Pu buC 4030

(n iw Caa}layot
)
set tayout
Button (" cica"
J
bi oew
Button
Submit")
Buttoo.b 0 w Button
b3Dud Buton"Helo
Butto n

add C bi4)

add tb
add Cb3)

himl
Ceatdbaek-ittyeeut ComdBagLo
cDple x
te Oe
et tme most f e t ble te
GE
Lacupana9tnc to gid e o Ou0et
PLa tes compavuent t

ec Covpoentt
atto oing specapi ot S
to sparn mot ple gooc o

ice to com povent


NO fx ed

impo Java awt."


impoat
avaa ppue."
Appel
xlen d APp
Bag
Pu bütCtass

Pabuc Void inito

out O
Dew Goi Eaq Lay
9
Gatd Bagayoe n e u d
BacConstaoik0
q o i d B a c C o n s t @ o i r k u ;

c neo Goid
BaqConstaainlt

Gid
sellayou g)
C ( ) ( ) , 9);
Cinsts -oew n s e l s

x 0, l co tuum o
a o w O.
gmd 0 1
15
C ipadaX
ipadV50)

c))
Betton('
Java'),
tnu
add

C-qaidx13
C ipad 10
tipadY q0
add neo Bulteo (" 0
9id 0
CqnidY-1
cpadX 30
Cipady qq0
nuw Butteo (dbms",
add
Cqotdx 1
C. padx 30,
Cotpocd
a dd Cneu Buttoo" ppe"), C)

khtmi)

<htmS

You might also like