import javafx.application.*;import javafx.scene.*;import javafx.stage.*;import javafx.scene.layout.*;public class JaveFXSkel extends Application { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stubSystem.out.println("Lanuching Javefx application.");launch(args); } public void init(){ System.out.println("Inside the init() method."); } public void start(Stage myStage){ System.out.println("Inside the start()method."); myStage.setTitle("JavaFX Skeleton."); FlowPane rootNode=new FlowPane(); Scene myScene=new Scene(rootNode,300,200); myStage.setScence(myScene); myStage.show(); } public void stop(){ System.out.println("Inside the stop() method."); }}
添加回答
举报
0/150
提交
取消