Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package latihan3;
- import javafx.application.Application;
- import static javafx.application.Application.launch;
- import javafx.event.ActionEvent;
- import javafx.event.EventHandler;
- import javafx.geometry.Insets;
- import javafx.geometry.Pos;
- import javafx.scene.Scene;
- import javafx.scene.control.Button;
- import javafx.scene.control.Label;
- import javafx.scene.control.TextField;
- import javafx.scene.layout.GridPane;
- import javafx.scene.layout.HBox;
- import javafx.scene.layout.StackPane;
- import javafx.scene.text.Font;
- import javafx.scene.text.FontWeight;
- import javafx.scene.text.Text;
- import javafx.stage.Stage;
- /**
- *
- * @author stevennathaniel
- */
- public class jendela1 extends Application{
- public void start(Stage primaryStage){
- primaryStage.setTitle("Kalkulator Pajak JavaFX");
- GridPane pane = new GridPane();
- pane.setAlignment(Pos.CENTER);
- pane.setHgap(10);
- pane.setVgap(10);
- pane.setPadding(new Insets(25,25,25,25));
- Scene scene = new Scene(pane, 300, 275);
- primaryStage.setScene(scene);
- primaryStage.show();
- }
- public static void main(String[]args){
- launch(args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement