package titledpanecrop;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TitledPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class TitledPaneCrop extends Application {
@Override
public void start(Stage primaryStage) {
Label myLabel = new Label("Hello World");
TitledPane tp = new TitledPane("This is a long title - resize the window smaller and see what happens", null);
tp.setContent(myLabel);
tp.setMinWidth(100);
VBox root = new VBox();
root.setPadding(new Insets(20));
root.getChildren().add(tp);
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("TitledPane Crop bug");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TitledPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class TitledPaneCrop extends Application {
@Override
public void start(Stage primaryStage) {
Label myLabel = new Label("Hello World");
TitledPane tp = new TitledPane("This is a long title - resize the window smaller and see what happens", null);
tp.setContent(myLabel);
tp.setMinWidth(100);
VBox root = new VBox();
root.setPadding(new Insets(20));
root.getChildren().add(tp);
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("TitledPane Crop bug");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}