7/12/2017

BCS2233 OOP. Quiz 4

//Button (also called Nodes) on Pane (also called Parent)
//Pane on Scene
//Scene on Stage

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.stage.Stage;
import javafx.scene.layout.StackPane;
public class myJavaDIY extends Application {
    @Override
    public void start(Stage myStage){
    myStage.setTitle("This is Stage");
   
    Button btnOK = new Button();
    btnOK.setText("OK");
    TextField nametxt = new TextField();
    StackPane Pane = new StackPane();
    Pane.getChildren().add(btnOK);
    Scene myScene = new Scene(Pane);
    myStage.setScene(myScene);
    myStage.show();

    }
   
    public static void main(String[] args) {
     System.out.println("Hello World!");
    launch();
   
    }
}

No comments:

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...