Cov txheej txheem:

Koj txhais li cas los ntawm AWT?
Koj txhais li cas los ntawm AWT?

Video: Koj txhais li cas los ntawm AWT?

Video: Koj txhais li cas los ntawm AWT?
Video: Koj ntxhais hu li cas?.KARAOKE. 2024, Kaum ib hlis
Anonim

Abstract Window Toolkit ( AWT ) yog ib txheej ntawm daim ntawv thov kev pab cuam cuam tshuam (API s) siv los ntawm Java programmers los tsim cov duab neeg siv interface (GUI) cov khoom, xws li cov nyees khawm, scroll bars, thiab windows. AWT yog ib feem ntawm Java Foundation Classes (JFC) los ntawm Sun Microsystems, lub tuam txhab uas yog Java.

Ntxiv mus, AWT piv txwv yog dab tsi?

AWT stands rau Abstract Window Toolkit. Nws yog lub platform nyob ntawm API rau kev tsim Graphical User Interface (GUI) rau java program. Vim li cas AWT yog lub platform nyob ntawm? Rau piv txwv yog tias koj instantiating ib lub thawv ntawv hauv AWT Qhov ntawd txhais tau tias koj tab tom thov OS los tsim lub thawv ntawv rau koj.

Ib yam li ntawd, AWT pob hauv Java yog dab tsi? Cov java ua . aw package yog lub ntsiab pob ntawm AWT , los yog Abstract Windowing Toolkit. Nws muaj cov chav kawm rau cov duab kos, suav nrog Java 2D graphics muaj peev xwm nkag tau rau hauv Java 2 platform, thiab tseem txhais cov qauv siv graphical user interface (GUI) rau Java.

Ib yam li ntawd, tib neeg nug, dab tsi yog AWT tswj?

AWT Controls tsis muaj dab tsi tab sis AWT Cheebtsam uas tso cai rau tus neeg siv sib txuas lus nrog tus neeg siv ntau txoj hauv kev. Nws kuj tseem tuaj yeem hais tias kev sib cuam tshuam nrog tus neeg siv yuav ua raws li peb lub ntsiab lus hauv qab no: UI Elements. layouts.

Dab tsi yog qhov sib txawv AWT Cheebtsam?

AWT Components

  • Button (java. awt.
  • Checkboxes (java. awt.
  • Radio Buttons (java. awt.
  • Choice Buttons (java. awt.
  • Labels (java. awt.
  • TextFields (java.awt. TextField) Yog thaj chaw uas tus neeg siv tuaj yeem sau ntawv.
  • Ib qho piv txwv daim ntawv thov.

Pom zoo: