
karyakram pathvanyacha dhaga

event dispatching thread (aii. dii. tii.) haah jaava bhashet vaparla jaanara eka parshvabhoomi dhaga aahe joou amoort vindo toolkit (aii. doubleu. tii.) graphikal yujar interfaces event rangetoon eventsvar prakriya karnyasathi vaparla jaato. event-driven programingchya samanya sankalpaneche heey eka udaharan aahe, jeey jaava vyatirikt itar anek sandarbhanmadhye lokpriy aahe, udaharanarth, web brouser kinwa web server.
karyakram heey pramukhyane adyayavat karyakram asatat jyamule vaparkarta interfaces ghatak swatahla punha rekhatatat kinwa maus kinwa keyboardsarkhya input upkarananmadhun karyakram pravisht karatat. aii. doubleu. tii. eka-thread painting model vaparte jyamadhye serve screen adyatane ekach dhagyatoon kelee jaane aavashyak aahe. drishyaman vaparkarta interfaces ghatakanchi drushya sthitee adyayavat karnyasathi event pathavnara dhaga haah ekmev vaidh dhaga aahe. itar dhagyanmadhun drishyaman ghatak adyayavat karane haah jaava programmadhil anek samanya bagcha srot aahe jeey swing vapartat. event dispatching threadla edob flashmadhye primordial worker aanee ess. doubleu. tii. madhye yuu. aay. thread mhanatat.nett framework aanee android.
jee. aay. aay. pravesh kramvarit aananyasathi sandesh loop.
software anuprayogamadhye samanyatah anek dhage aanee ekach jee. aay. tii. deta rachana asate. yacha arth git hii eka samayik deta rachana aahe aanee eka velee fakt eka dhagyane tyat pravesh keela aahe heey sunishchit karnyasathi kahee samkramanachi aavashyakta aahe. jaree aii. doubleu. tii. aanee swing heey jee. yuu. aay. ghatak tayar karnyasathi aanee tyat pravesh karnyasathi (dhaga asurakshit) paddhati ughad karat asale aanee yaa paddhati serve anuprayog dhagyanna disatat, tyachpramane itar jee. yuu. aay. chaukatimadhye, keval ekach, karyakram pathvanyachya dhagyala yaa paddhati amalat aananyacha adhikar aahe.
programmer anekada hii aavashyakta chukavat asalyane, asha kodingchi chook talhanyasathi, karyakram preshan dhagyat naan chalatana konatyahi swing ghatkala twarit nakar denyaitka padarth, truteey-paksh pahato aanee anubhavato. jee. yuu. aay. madhye pravesh kramvarit keela jaato aanee itar dhage aii. dii. tii. sandesh ranget chalvanyasathi kahee code sadar karoo shakatat.
mhanjech, tyachpramane itar jee. yuu. aay. chaukatimadhye, karyakram pathavnara dhaga tyache ayushya sandesh pathvanyat ghalavatoh too jee. yuu. aay. varr kelya jaananya krutinchi sandesh rang rakhato. yaa vinantya pranalinusar aanee konatyahi arjachya dhagyanusar ranget sadar kelya jaatat. aii. dii. tii. teey ekamagoon eka upbhogate aanee jee. yuu. aay. ghatak adyayavat karoon pratisad dete. sandesh heey suprasiddha krutee asoo shakatat kinwa tyat collback, vaparkartyachya paddhatinche sandarbh samavisht asoo shakatat, jeey eae. dii. tii. chya madhyamatoon amalat aanane aavashyak aahe.
serve sandeshanvar ladaleli mahattvachi aavashyakta mhanje jee. aay. aay. pratisadatmak rahnyasathi tyanchi twarit amalbajavani karane aavashyak aahe. anyatha, sandesh loop avarodhit keela jaato aanee jee. aay. aay. gothanyacha anubhav yeto.
vaparkarta code aii. dii. tii. varr sadar karane.
aii. dii. tii. varr code sadar karnyasathi aanee loop avarodhit naan karata lamb kaame karnyasathi vividh upay aahet.
ghatak karyakram hatalanare (shrote).
jee. yuu. aay. ghatak collbachya yadila samarthan detat, jyanna shrote mhanatat, jeey samanyatah ghatak tayar kele jaatat tevha bharalele asatat. jevha vaparkarta ghatak kasetari uttejit karato tevha (button dabale jaate, maus halavala jaato, vastoo nivadali jaate, phocus haravala aahe, ghatakacha aakar badalala aahe aanee asech.)
timer.
jee. yuu. aay. madhye veloveli kinwa vishisht velee pravesh karane/tyat badal karane aavashyak asalelya chhotya kamansathi, cocksey _ 1 vaparale jaate. too eka adrushya jee. yuu. aay. ghatak manla jaau shakato, jyache shrote vishisht velee (vela) golibar karnyasathi nondanikrut asatat.
samatulya
itar dhagyanmadhun maganya.
itar anuprayog dhage sahayyak varganchya madhyamatoon (kinwa jarr tumhi aii. doubleu. tii. karat asal tarr) dhaga pathvanyachya karyakramat karyanvit karnyasathi kahee code paas karoo shakatat. sadar kelela code ekhadya vastoone gundalalela asane aavashyak aahe. yaa varganchya done paddhati parvanagi detatah
karyakram pathvanyachya dhagyatoon.
karyakram pathvanyachya dhagyatoon cocksey _ 4 paddhatila kadhihi coll karoo naye-tee eka apavad tharel. sadhyacha dhaga haah event dispatching dhaga aahe qee nahee heey nirdharit karnyasathi paddhat kinwa coll keela jaau shakato.
gothan talhanyasathi eae. dii. tii. laa coaches _ 5 aanee coaches _ 6 dware puravalela code shakya titka jalad asane aavashyak aahe. teey samanyatah dirgh gananecha parinam jee. yuu. aay. (vaparkarta) laa pohochavanyacha hetu asatat.
kamgar rachana namuna.
dusya dhagyat kamachi amalbajavani aanee aii. dii. tii. madhye parinam sadar karane heey donhi 'kamgar rachana namuna' chya madhyamatoon ekatra kele jaau shakatat. sunn microsystemsney vikasit kelela cocois _ 7 varg haah kamgaranchya rachana namunyachi amalbajavani aahe aanee jaava 6 haah manak swing vitaranacha bhag aahe. aii. dii. tii. laa advu naye mhanoon lamb kaam karnyasathi samanyatah aii. dii. tii.-karyanvit karyakram shrotyankadun swingworkerla bolavile jaate.
namune.
swingworker <dastaivaj, shoonya> kamgar = naveen swingworker <dastaivaj, shoonya> () {
 sarvajanik dastaivaj doinbackground () ioxption fekato {
 parat qaraa loadxml ();// judd karya
 
 sarvajanik shoonya kele () {
 prayatna qaraa {
 dastaivaj dock = midwa ();
 pradarshan (dock);
 } pakadane (apavad udaa) {
 udaa.printstactrass ();
kamgar.karyanvit qaraa ();
jarr tumhi grovy aanee cocksey 8 vaparat asal tarr tumhi cocksey 9, cocksey 10 aanee cocksey 11 vaparu shakata. mug tumhi teey adhik sopya paddhatine asey lihu shakatah
baherchya bajula {
 dii. eff. dock = loadex. emm. ell. ()// judd karya
aadarsh amalbajavani.
swingworker samanyatah collback (shrote) karyakram hataltana aii. dii. tii. dware lamb kamansathi tayar keela jaato. kamgarala dhaga tayar karoon, kamgar purn honyachi vaat naan pahata vartaman sandesh hatalane pudhe chaloo thevate. byavachada heey isht nasate.
anekada, tumcha eae. dii. tii. eka jee. yuu. aay. ghatak krutee hatalato, jee vaparkartyala dusya sanvadadvare nivad karanyachi magani karate, jase qee jephilechozar, jeey popp up hote, pratisadatmak rahate, jevha vaparkarta tyacha paryay nivadato aanee nivadalelya files krutee "oke" button dablyanantarach pudhe jaate. tumhi pahaa, yala vel lagato (vaparkarta kahee sekandat pratisad deto) aanee tumhala yaa serve kalat pratisadatmak jee. yuu. aay. chee (sandesh ajunahi aii. dii. tii. madhye pump kelele asatat) aavashyakta asate, jevha aii. dii. tii. avarodhit karat asato (teey naveen hatalat nahee, udaa.jee. jephilechozar, sanvad bund honyapurvi aanee sadhyachi ghatak krutee purn honyapurvi ranget sandesh). naveen sandesh loopmadhye pravesh karoon dushtchakra modale jaate, jeey "model sanvad sampala" toparyant aanee ghatak krutimadhye avarodhit sthanavarun samanya sandesh prakriya punha suru hoiparyant samanya sandesh pathavate.
mukt srot foxtrot prakalp swing sandesh loop pumpingche anukaran karato, jyamule vaparkartyachya aniyantrit karyansathi "samkramit" amalbajavani yantrana pradan hote, jee kamgarane karya purn kelyanantarach pudhe jaate.
 button.adactionalistner (naveen actionalistner)
 sarvajanik shoonya krutee (krutee karyakram eae)
 button.settext ("zopane"...");
 string majkoor = shoonya;
 prayatna qaraa
 majkoor = (string) karyakarta.padd (naveen karya ()
 sarvajanik object runn () apavad sodate
 dhaga.zope (10000);
 parat jaa "zopala!";
 );
 pakad (ex apavad)...
 button.seet text (majkoor);
 kahitari ();
 );
jaava 1.7 pasoon, jaava pranali "eventque" () madhye "creases secondary loop" () ughad karoon sanukool duyyam sandesh loopsathi manak upay pradan karate.