When showing a small scene (see following code) with SplitPanes into a JFXPanel, the mouse cursor is not updated to resize cursor on hovering the splitpane dividers.
{code:java}
public class Splitters extends Application
{
public static void main(String[] args)
{
Application.launch(args);
}
@Override
public void start(Stage primaryStage)
{
primaryStage.setTitle("Split Views");
Group root = new Group();
Scene scene = new Scene(root, 350, 250, Color.WHITE);
SplitPane splitPane = new SplitPane();
splitPane.prefWidthProperty().bind(scene.widthProperty());
splitPane.prefHeightProperty().bind(scene.heightProperty());
VBox leftArea = new VBox(10);
HBox rowBox = new HBox(20);
final Text leftText = TextBuilder.create().text("Left ").translateX(20).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 20)).build();
rowBox.getChildren().add(leftText);
leftArea.getChildren().add(rowBox);
leftArea.setAlignment(Pos.CENTER);
SplitPane splitPane2 = new SplitPane();
splitPane2.setOrientation(Orientation.VERTICAL);
splitPane2.prefWidthProperty().bind(scene.widthProperty());
splitPane2.prefHeightProperty().bind(scene.heightProperty());
HBox centerArea = new HBox();
final Text upperRight = TextBuilder.create().text("Text").x(100).y(50).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 35)).translateY(50).build();
centerArea.getChildren().add(upperRight);
HBox rightArea = new HBox();
final Text lowerRight = TextBuilder.create().text("Lower Right").x(100).y(50).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 35)).translateY(50).build();
rightArea.getChildren().add(lowerRight);
splitPane2.getItems().add(centerArea);
splitPane2.getItems().add(rightArea);
splitPane.getItems().add(leftArea);
splitPane.getItems().add(splitPane2);
ObservableList<SplitPane.Divider> dividers = splitPane.getDividers();
for (int i = 0; i < dividers.size(); i++)
{
dividers.get(i).setPosition((i + 1.0) / 3);
}
HBox hbox = new HBox();
hbox.getChildren().add(splitPane);
root.getChildren().add(hbox);
primaryStage.setScene(scene);
primaryStage.show();
}
}
{code}
{code:java}
public class Splitters extends Application
{
public static void main(String[] args)
{
Application.launch(args);
}
@Override
public void start(Stage primaryStage)
{
primaryStage.setTitle("Split Views");
Group root = new Group();
Scene scene = new Scene(root, 350, 250, Color.WHITE);
SplitPane splitPane = new SplitPane();
splitPane.prefWidthProperty().bind(scene.widthProperty());
splitPane.prefHeightProperty().bind(scene.heightProperty());
VBox leftArea = new VBox(10);
HBox rowBox = new HBox(20);
final Text leftText = TextBuilder.create().text("Left ").translateX(20).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 20)).build();
rowBox.getChildren().add(leftText);
leftArea.getChildren().add(rowBox);
leftArea.setAlignment(Pos.CENTER);
SplitPane splitPane2 = new SplitPane();
splitPane2.setOrientation(Orientation.VERTICAL);
splitPane2.prefWidthProperty().bind(scene.widthProperty());
splitPane2.prefHeightProperty().bind(scene.heightProperty());
HBox centerArea = new HBox();
final Text upperRight = TextBuilder.create().text("Text").x(100).y(50).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 35)).translateY(50).build();
centerArea.getChildren().add(upperRight);
HBox rightArea = new HBox();
final Text lowerRight = TextBuilder.create().text("Lower Right").x(100).y(50).fill(Color.RED).font(Font.font(null, FontWeight.BOLD, 35)).translateY(50).build();
rightArea.getChildren().add(lowerRight);
splitPane2.getItems().add(centerArea);
splitPane2.getItems().add(rightArea);
splitPane.getItems().add(leftArea);
splitPane.getItems().add(splitPane2);
ObservableList<SplitPane.Divider> dividers = splitPane.getDividers();
for (int i = 0; i < dividers.size(); i++)
{
dividers.get(i).setPosition((i + 1.0) / 3);
}
HBox hbox = new HBox();
hbox.getChildren().add(splitPane);
root.getChildren().add(hbox);
primaryStage.setScene(scene);
primaryStage.show();
}
}
{code}