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 stub
System.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.");
}
}
_疯_子_
相关分类