1、此文档是毕业设计外文翻译成品( 含英文原文+中文翻译),无需调整复杂的格 式!下载之后直接可用,方便快捷!本文价格不贵,也就几十块钱!一辈子也就 一次的事! 外文标题:Using JavaFX in Nashorn 外文作者:Kishori Sharan 文献出处: Scripting in Java Integrating with Groovy and JavaScript,2018 (如觉得年份太老,可改为近 2 年,毕竟很多毕业生都这样做) 英文 1699 单词,10021 字符(字符就是印刷符),中文 2600 汉字。(如果字数多 了,可自行删减,大多数学校都是要求选取外文的一部分内
2、容进行翻译的。) Using JavaFX in Nashorn In this chapter, you will learn: 1.The JavaFX support in the jjs command-line tool 2.Providing an implementation for the init ( ) , start ( ) , and stop( ) methods of the JavaFX Application class in scripts 3.How to load and use JavaFX packages and classes using the
3、predefined scripts 4.Creating and launching a simple JavaFX application using a Nashorn script Throughout this chapter, it is assumed that you have beginner-level experience in JavaFX8. If you do not have experience in JavaFX, please learn JavaFX before reading this chapter. JavaFX Support in jjs Th
4、e j j s command-line tool lets you launch JavaFX applications created in Nashorn scripts. You need to use the f x option with the j j s tool to run a script as a JavaFX application. The following command runs a script stored in the myf xapp. js file as a JavaFX application: Structure of JavaFX Applications in Scripts In a JavaFX application, you override the following three methods of the Application class to manage the lifecycle of the application: The init ( ) method The start ( )