Cov txheej txheem:

Kuv yuav tsim ib qho applet program hauv NetBeans li cas?
Kuv yuav tsim ib qho applet program hauv NetBeans li cas?

Video: Kuv yuav tsim ib qho applet program hauv NetBeans li cas?

Video: Kuv yuav tsim ib qho applet program hauv NetBeans li cas?
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim

Kauj ruam yog kauj ruam cov lus qhia rau Tsim Koj Thawj Applet hauv NetBeans 7.2

  1. Xaiv Cov Ntaub Ntawv / Tshiab Qhov project .
  2. Hauv qab Qhov project Sau npe, sau koj lub npe daim ntawv thov .
  3. Nyem Ua kom tiav.
  4. Right-click lub qhov project node nyob rau hauv lub qhov rais Projects los yog cov ntaub ntawv qhov rais thiab xaiv Tshiab> Lwm yam.
  5. Hauv Chav Kawm Lub Npe, sau koj lub npe applet .

Xav txog qhov no, koj yuav tsim Java applet li cas?

Compile cov Java qhov chaws. Tsim ib nplooj ntawv HTML uas hais txog qhov applet . Qhib nplooj ntawv HTML hauv qhov browser.

Lawv yuav zoo ib yam rau txhua applet koj ua:

  1. Sau Java code hauv cov ntawv nyeem.
  2. Txuag cov ntaub ntawv.
  3. Sau cov cai.
  4. Kho tej yam tsis raug.
  5. Siv lub applet hauv nplooj ntawv HTML.
  6. Khiav lub applet los ntawm saib lub vev xaib.

Tsis tas li ntawd, yuav ua li cas applet tuaj yeem tsim hauv Java piav qhia nrog piv txwv? Applets yog siv los ua kom lub vev xaib ntau zog thiab lom zem. Koj yuav tsum sau cov chav kawm no rau hauv cov ntaub ntawv hauv chav kawm thiab tom qab ntawd kos rau hauv nplooj ntawv HTML. Tshawb xyuas Tsim Ua ntej Applet rau ceev piv txwv ntawm coding, compiling thiab khiav ib Applet . khiav Applet hauv browser koj muaj koj siv Java enabled web browser.

Yog li ntawd, kuv yuav ua li cas khiav ib qho applet program hauv kuv tus browser?

Koj ua tau khiav tus applet los ntawm kev thauj cov ntaub ntawv HTML rau hauv lub vev xaib browser . Ob npaug nyem rau "HelloApplet. html" hauv Windows Explorer (lossis los ntawm browser , xaiv "file" ntawv qhia zaub mov ⇒ "qhib" ⇒ "loj" thiab xaiv "HelloApplet. html", lossis rub cov ntaub ntawv HTML rau hauv browser ).

Kuv yuav ua li cas khiav ib qho applet program hauv notepad?

I. Cov

  1. Pib lub qhov rais MS-DOS hais kom ua.
  2. Tam sim no, hloov mus rau cov npe ntawm koj xaiv los ntawm hauv lub qhov rais hais kom ua.
  3. Tsim ib co Java qhov chaws nrog Notepad los ntawm hauv lub qhov rais hais kom ua.
  4. Lub hauv paus code, A.java, tej zaum yuav zoo li no:
  5. Muab ob npaug rau kos lub npe ntawm Java program file koj nyuam qhuav khaws tseg.

Pom zoo: