Teach Yourself Java in 21 Days



Download 5,76 Mb.
Pdf ko'rish
bet16/54
Sana30.12.2021
Hajmi5,76 Mb.
#97759
1   ...   12   13   14   15   16   17   18   19   ...   54
Bog'liq
LearnJava

Day

13

The Java Abstract Windowing Toolkit

237

An AWT Overview................................................................................. 238

The Basic User Interface Components .................................................... 240

Labels ................................................................................................ 241

Buttons .............................................................................................. 242

Checkboxes ........................................................................................ 243

Radio Buttons .................................................................................... 244

Choice Menus ................................................................................... 245

Text Fields ......................................................................................... 247

Panels and Layout ................................................................................... 249

Layout Managers ............................................................................... 249

Insets ................................................................................................. 254

Handling UI Actions and Events ............................................................ 255

Nesting Panels and Components ............................................................ 258

Nested Panels .................................................................................... 258

Events and Nested Panels .................................................................. 258

More UI Components ............................................................................ 259

Text Areas .......................................................................................... 259

Scrolling Lists .................................................................................... 261

Scrollbars and Sliders ......................................................................... 262

Canvases ............................................................................................ 265

More UI Events ...................................................................................... 265

A Complete Example:

RGB to HSB Converter ....................................................................... 266

Create the Applet Layout ................................................................... 267

Create the Panel Layout ..................................................................... 267

Define the Subpanels ......................................................................... 269

Handle the Actions ............................................................................ 272

Update the Result .............................................................................. 272

The Complete Source Code ............................................................... 274

Summary ................................................................................................ 277

Q&A ...................................................................................................... 277




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   12   13   14   15   16   17   18   19   ...   54




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish