AdvJava BIS402 Module-3 Notes
AdvJava BIS402 Module-3 Notes
MODULE - 3
IV Semester
2022 Scheme
Prepared By:
Dr. Veena R S
Associate Professor,
Department of Information Science and Engineering
Email:[email protected]
fainti in Soird
let ws wte lntly into the
o atane , panel o One
dapley aea
Mthods
jdoth () obtai he widttCenyenen
-obteuns the
Cononnd
Sample output
II Paint nes to a Panel
aut t
ipont java. ;
inypond ava, aut tvent.d
tnyot java.util.*
an entends TPanl an
Ovemi oes painConfoone)to dauw Aanlom lin
clan Pard Paned eends Tpaned
trset ins
Random Aouno
faint fanell )
Set bonda/Bondufoacto ny (AeaelineBonde/
Colos. RED, s));
L
hand nuw Random()
icth
lo lins cohe endp ia ae
Fondon geneat d.
<I0; itt)
soa (int iz0;
Codinates
| obtan Senolon
wicth- in.e t)
x= had. nent Fnd
y= hand. tnthigd - ins.boto).
clth- ns
22 = and. nettnd
faintenmo)
ne