上传者: b15555234
|
上传时间:2023/3/9 22:14:18
|
文件大小:10.11MB
|
文件类型:ZIP
javafx-8u152-apidocs-api
publicabstractclassApplicationextendsObjectApplicationclassfromwhichJavaFXapplicationsextend.Life-cycleTheentrypointforJavaFXapplicationsistheApplicationclass.TheJavaFXruntimedoesthefollowing,inorder,wheneveranapplicationislaunched:ConstructsaninstanceofthespecifiedApplicationclassCallstheinit()methodCallsthestart(javafx.stage.Stage)methodWaitsfortheapplicationtofinish,whichhappenswheneitherofthefollowingoccur:theapplicationcallsPlatform.exit()thelastwindowhasbeenclosedandtheimplicitExitattributeonPlatformistrueCallsthestop()methodNotethatthestartmethodisabstractandmustbeoverridden.Theinitandstopmethodshaveconcreteimplementationsthatdonothing.CallingPlatform.exit()isthepreferredwaytoexplicitlyterminateaJavaFXApplication.DirectlycallingSystem.exit(int)isanacceptablealternative,butdoesn'tallowtheApplicationstop()methodtorun.AJavaFXApplicationshouldnotattempttouseJavaFXaftertheFXtoolkithasterminatedorfromaShutdownHook,thatis,afterthestop()methodreturnsorSystem.exit(int)iscalled.
本软件ID:10155067