Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:50:17+00:00 2026-05-24T04:50:17+00:00

Since updating to JavaFX 2.0 b36 (SDK for Windows (32Bit) + Netbeans Plugin) from

  • 0

Since updating to JavaFX 2.0 b36 (SDK for Windows (32Bit) + Netbeans Plugin) from a previous JavaFX 2.0 version the SplitPane control does not work as expected any longer.

  1. The divider can’t be moved
  2. The divider position is not as expected
  3. The sizing of the contained sides is not as expected

Here my example code for a SplitPane .

public class FxTest extends Application {

    public static void main(String[] args) {
        Application.launch(FxTest.class, args);
    }

    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("SplitPane Test");

        Group root = new Group();
        Scene scene = new Scene(root, 200, 200, Color.WHITE);

        Button button1 = new Button("Button 1");
        Button button2 = new Button("Button 2");

        SplitPane splitPane = new SplitPane();
        splitPane.setPrefSize(200, 200);
        splitPane.setOrientation(Orientation.HORIZONTAL);
        splitPane.setDividerPosition(0, 0.7);
        splitPane.getItems().addAll(button1, button2);

        root.getChildren().add(splitPane);

        primaryStage.setScene(scene);
        primaryStage.setVisible(true);
    }
}

As you can (hopefully) see the left side is clearly smaller than the right side.

Another funny fact is, when you change orientation to VERTICAL

splitPane.setOrientation(Orientation.VERTICAL);

and try to move the divider up or down you get some console output saying ‘HERE’.
Looks like some test output.

What’s the issue with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:50:18+00:00Added an answer on May 24, 2026 at 4:50 am

    To get the SplitPane working as expected add a layout (e.g. BorderPane) to each side. Add the controls to display to each of these layouts. I think this should be made more clear in API documentation!

    public class FxTest extends Application {
    
        public static void main(String[] args) {
            Application.launch(FxTest.class, args);
        }
    
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("SplitPane Test");
    
            Group root = new Group();
            Scene scene = new Scene(root, 200, 200, Color.WHITE);
    
            //CREATE THE SPLITPANE
            SplitPane splitPane = new SplitPane();
            splitPane.setPrefSize(200, 200);
            splitPane.setOrientation(Orientation.HORIZONTAL);
            splitPane.setDividerPosition(0, 0.7);
    
            //ADD LAYOUTS AND ASSIGN CONTAINED CONTROLS
            Button button1 = new Button("Button 1");
            Button button2 = new Button("Button 2");
    
            BorderPane leftPane = new BorderPane();
            leftPane.getChildren().add(button1);
    
            BorderPane rightPane = new BorderPane();
            rightPane.getChildren().add(button2);
    
            splitPane.getItems().addAll(leftPane, rightPane);
    
            //ADD SPLITPANE TO ROOT
            root.getChildren().add(splitPane);
    
            primaryStage.setScene(scene);
            primaryStage.setVisible(true);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird
I have recently updated Xcode to use the iOS5 SDK. Since updating my app
I'm updating some legacy code from the old 3.0 version of the C# Facebook
Since updating my SDK Tools to r12, an existing project (with zero code changes)
After updating my sdk tools I cannot build my project from the command line.
Since updating the subclipse plugin the paths next to project name in Eclipse disappeared.
Since CS3 doesn't have a web service component, as previous versions had, is there
Since Graduating from a very small school in 2006 with a badly shaped &
Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote
Since updating to Lion I can't install configuration profiles with the iPhone Configuration Utility

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.