SWT Library yog dab tsi?
SWT Library yog dab tsi?

Video: SWT Library yog dab tsi?

Video: SWT Library yog dab tsi?
Video: Large Tumor examination before surgery 2024, Kaum ib hlis
Anonim

Standard Widget Toolkit ( SWT ) yog lub neej ntawd tus neeg siv interface tsev qiv ntawv siv Eclipse. Nws muab widgets, xws li cov nyees khawm thiab cov ntawv nyeem. Nws siv cov haiv neeg widgets ntawm lub platform thaum twg los tau. Cov widgets hauv OS yog nkag los ntawm cov SWT lub moj khaum ntawm Java Native Interface (JNI) lub moj khaum.

Tsis tas li ntawd, SWT yog dab tsi?

Standard Widget Toolkit ( SWT ) yog cov cuab yeej siv duab kos duab rau siv nrog Java platform. Nws yog lwm txoj hauv kev rau Cov Khoom Siv Sab Nraud Qhov rai (AWT) thiab Swing Java graphical user interface (GUI) cov cuab yeej muab los ntawm Sun Microsystems ua ib feem ntawm Java Platform, Standard Edition (J2SE).

Ib tug kuj nug, kuv yuav ua li cas rub tawm SWT rau dab noj hnub?

  1. Rub tawm SWT ruaj khov tso rau koj Eclipse version thiab koj qhov kev khiav haujlwm ntawm Eclipse SWT Project Page.
  2. Qhov no yuav rub tawm cov ntaub ntawv zip uas muaj peb lub org.
  3. Hauv dab noj hnub, xaiv Import / Existing Projects rau hauv Chaw Ua Haujlwm, raws li qhia hauv qab no.
  4. Nyem Next thiab xaiv qhov xaiv Xaiv cov ntaub ntawv archive.

Tsis tas li ntawd, dab tsi yog qhov sib xyaw hauv SWT?

Layout Management hauv Java SWT . Txhawm rau npaj peb cov widgets, peb siv cov khoom tshwj xeeb uas tsis pom pom hu ua layout ntim. Composite yog lub thawv rau tso me nyuam widgets. Tus thawj tswj layout rau a Composite yog teem nrog txoj kev setLayout(). Plhaub yog ib Composite ib yam nkaus.

Dab tsi yog widget hauv Java?

A " widget " yog ib lo lus generic rau ib yam khoom tsim. Java widget muaj ib tug sib thooj tivthaiv nyob rau hauv lub hauv paus qhov raising system. Qhov no tso cai rau snappy widgets nrog kev ua yeeb yam hauv haiv neeg.

Pom zoo: