Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* 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 de.javafxbuch;

import javafx.collections.ObservableList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class MainApp extends Application {
Expand All @@ -26,7 +25,7 @@ public void start(Stage primaryStage) {
anchorPane.getChildren().add(buttons);
AnchorPane.setRightAnchor(buttons, 10.0);
AnchorPane.setBottomAnchor(buttons, 20.0);
primaryStage.setScene(new Scene(new StackPane(anchorPane), 300, 200));
primaryStage.setScene(new Scene(anchorPane, 300, 200));

primaryStage.show();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class MainApp extends Application {
Expand All @@ -27,7 +26,7 @@ public void start(Stage primaryStage) {
for (int i = 0; i < images.length; i++) {
iconView.getChildren().add(new ImageView(images[i]));
}
primaryStage.setScene(new Scene(new StackPane(iconView), 300, 200));
primaryStage.setScene(new Scene(iconView, 300, 200));

primaryStage.show();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public void start(Stage primaryStage) throws URISyntaxException {
EventHandler<MouseEvent> clickHandler;
final CardStackLayout cardStackLayout = new CardStackLayout();
final CardStackLayout cardStackLayout2 = new CardStackLayout();
cardStackLayout.setMinHeight(200);
cardStackLayout2.setMinHeight(200);
clickHandler = new EventHandler<MouseEvent>() {

@Override
Expand Down