Core Java® Volume I–Fundamentals


Chapter 12: User Interface Components with Swing



Download 37,53 Mb.
Pdf ko'rish
bet13/34
Sana06.01.2022
Hajmi37,53 Mb.
#325163
1   ...   9   10   11   12   13   14   15   16   ...   34
Bog'liq
9780134177373-Vol-1

Chapter 12: User Interface Components with Swing ...............................

630


Swing and the Model-View-Controller Design Pattern .....................

12.1


630

Design Patterns ..........................................................................

12.1.1

632


The Model-View-Controller Pattern .......................................

12.1.2


636

A Model-View-Controller Analysis of Swing Buttons .........

12.1.3

638


Introduction to Layout Management ....................................................

12.2


641

Border Layout ............................................................................

12.2.1

644


Grid Layout ................................................................................

12.2.2


648

Text Input ..................................................................................................

12.3

649


Text Fields ...................................................................................

12.3.1


651

Labels and Labeling Components ..........................................

12.3.2

652


Password Fields .........................................................................

12.3.3


653

Text Areas ...................................................................................

12.3.4

654


Scroll Panes .................................................................................

12.3.5


657

Choice Components ................................................................................

12.4

657


Checkboxes .................................................................................

12.4.1


660

Radio Buttons .............................................................................

12.4.2

Contents


xiv

From the Library of Hristo Dimov Hristov




ptg18360597

664


Borders ........................................................................................

12.4.3


668

Combo Boxes ..............................................................................

12.4.4

672


Sliders ..........................................................................................

12.4.5


678

Menus ........................................................................................................

12.5

679


Menu Building ...........................................................................

12.5.1


682

Icons in Menu Items ..................................................................

12.5.2

683


Checkbox and Radio Button Menu Items ..............................

12.5.3


684

Pop-Up Menus ...........................................................................

12.5.4

686


Keyboard Mnemonics and Accelerators ................................

12.5.5


689

Enabling and Disabling Menu Items ......................................

12.5.6

694


Toolbars .......................................................................................

12.5.7


696

Tooltips ........................................................................................

12.5.8

699


Sophisticated Layout Management .......................................................

12.6


701

The Grid Bag Layout .................................................................

12.6.1

703


The 

gridx


gridy


gridwidth

, and 

gridheight



 Parameters ...

12.6.1.1


703

Weight Fields ..............................................................

12.6.1.2

704


The 

fill


 and 

anchor


 Parameters ..................................

12.6.1.3


704

Padding .......................................................................

12.6.1.4

705


Alternative Method to Specify the 

gridx


gridy


,

gridwidth

, and 

gridheight



 Parameters ............................

12.6.1.5


706

A Helper Class to Tame the Grid Bag

Constraints ..................................................................

12.6.1.6


713

Group Layout .............................................................................

12.6.2

723


Using No Layout Manager ......................................................

12.6.3


724

Custom Layout Managers ........................................................

12.6.4

729


Traversal Order ..........................................................................

12.6.5


730

Dialog Boxes .............................................................................................

12.7

731


Option Dialogs ...........................................................................

12.7.1


741

Creating Dialogs ........................................................................

12.7.2

746


Data Exchange ............................................................................

12.7.3


752

File Dialogs .................................................................................

12.7.4

764


Color Choosers ..........................................................................

12.7.5


770

Troubleshooting GUI Programs .............................................................

12.8

770


Debugging Tips .........................................................................

12.8.1


774

Letting the AWT Robot Do the Work .....................................

12.8.2

xv

Contents


From the Library of Hristo Dimov Hristov


ptg18360597


Download 37,53 Mb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   ...   34




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