Formatting
This commit is contained in:
@ -5,28 +5,21 @@ import javafx.stage.Stage;
|
|||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
//import javafx.scene.layout.BorderPane;
|
//import javafx.scene.layout.BorderPane;
|
||||||
|
|
||||||
public class Main extends Application
|
public class Main extends Application {
|
||||||
{
|
public void start(Stage primaryStage) {
|
||||||
public void start(Stage primaryStage)
|
try {
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
RootGridPane root = new RootGridPane();
|
RootGridPane root = new RootGridPane();
|
||||||
// BorderPane root = new BorderPane();
|
// BorderPane root = new BorderPane();
|
||||||
Scene scene = new Scene(root, 400, 400);
|
Scene scene = new Scene(root, 400, 400);
|
||||||
primaryStage.setScene(scene);
|
primaryStage.setScene(scene);
|
||||||
primaryStage.setTitle("Erstes Fenster");
|
primaryStage.setTitle("Erstes Fenster");
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
}
|
} catch (Exception e) {
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args) {
|
||||||
{
|
|
||||||
launch(args);
|
launch(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import javafx.scene.control.Button;
|
|||||||
import javafx.scene.layout.FlowPane;
|
import javafx.scene.layout.FlowPane;
|
||||||
import javafx.scene.layout.GridPane;
|
import javafx.scene.layout.GridPane;
|
||||||
|
|
||||||
|
|
||||||
public class RootGridPane extends GridPane {
|
public class RootGridPane extends GridPane {
|
||||||
|
|
||||||
// Button btButton1;
|
// Button btButton1;
|
||||||
@ -13,10 +12,9 @@ public class RootGridPane extends GridPane {
|
|||||||
|
|
||||||
Button btButton1, btLaden, btSpeichern;
|
Button btButton1, btLaden, btSpeichern;
|
||||||
Button btButton4, btButton5, btButton6, btButtonSieben, btButtonAcht;
|
Button btButton4, btButton5, btButton6, btButtonSieben, btButtonAcht;
|
||||||
FlowPane fpRechtsUnten ;
|
FlowPane fpRechtsUnten;
|
||||||
|
|
||||||
public RootGridPane()
|
public RootGridPane() {
|
||||||
{
|
|
||||||
initComponents();
|
initComponents();
|
||||||
addComponents();
|
addComponents();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user