資源描述:
《Up to Speed with Swing 2nd Edition.pdf》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、PrefaceAn“earlytechnologyadopter”(alsoknownasatechno-geek)likemyselfisusuallyreadytoevaluateanexcitingnewAPIthedayitisreleased(ifnotsooner).Inlate1994,whileattendingasoftwaredevelopers’conferenceinCalifornia,Iencounteredapastacquaintancewho,atthetime,wasemployedbySunMicrosystems.A
2、sIamapttodo,Ibegancomplainingtohimaboutthegenerallyinadequatestateofthebusiness,and,inparticular,thecodingeffortandportabilityweaknessesinlanguagessuchasCandC++.Afterlisten-ingtomydroningforawhile,myfriendtoldmeaboutaparticularlyinterest-ingprogramminglanguagecomingfromSunMicrosys
3、temsinjustacoupleofmonths.AnewlanguagefromSun?Aren’ttheyaUNIXworkstationcom-pany?Whatdoesahardwarecompanyknowaboutbuildingcomputerlan-guages?IwasskepticalabouttryingtouseanylanguageproducedbySunMicrosystems.ThelanguagemyfriendwasreferringtowasJava1.0,which,ashepre-dicted,wasshippe
4、datthebeginningof1995.InlateJanuaryof1995,Icon-nectedtoSun’sWorldWideWebsite,pulleddownthefirstversionoftheJavaDevelopmentKit(JDK),andimmediatelybegantinkering.AlthoughIdidn’tyetunderstandtheoverallvisionofJava,Iwasimpressedwiththeplatformindependence,andwiththespeedatwhichIcouldb
5、uildrelativelycomplexprototypes.Intheseearlystages,IviewedJavaasareplacementforMicrosoft’sVisualBasicasaprototypingtool;however,Iwassoontoappreci-atethecapabilitiesofthisnewlanguage.Java1.0wasstillfarfromthatuto-piansoftwareworldthatIwassearchingfor,butitdemonstratedsomerealpromis
6、easanobject-orientedlanguage,andSun’scommitmenttofuturexxPREFACEenhancementsconvincedmethatJavawasthelanguageforme.Inspiteofthemanyskepticsaroundme,Iwashooked.IcontinuedtouseJava1.0,notingitsweaknessesanddoingmybesttoworkaroundthem.IeventuallydiscoveredsomeseriouslimitationsinJava
7、,but,whenIwasalmostreadytogiveuponthelanguage,SunreleasedJava1.1featuringatotallyneweventmodelandofferingsignificantnewfeatureslikeinternationaliza-tionandkeyboardsupport.Asanearlytechnologyadopter,Idownloadedthe1.1release,andmyconfidenceinJavawasrenewed.Applicationsthatcrawledint
8、heJava1.0VirtualMachine(VM)raced,