Questions tagged [borderpane]

110 questions
16
votes
2 answers

JavaFX tableview resize to fit window

I am just trying out JavaFX and am forcing my way into it because it is suppose to be the future. I am trying to create a table with 4 columns. The columns AND THE TABLE should resize to fill the parent pane. I cannot for the life of me get this…
bzanchi
  • 163
  • 1
  • 1
  • 5
5
votes
2 answers

JavaFX: How to center the center node on a borderpane according to the Stage?

I am having a problem centering a button in my borderpane to be centered according to the stage. It is centered according to the borderpane but I want it to be in the exact center of the window. I am referring to the bottom part of my picture which…
Flameo326
  • 55
  • 1
  • 7
3
votes
2 answers

Can't center nodes within a border pane

I can't for the life of me figure out why I can't center a VBox within one of the sections within a border pane. @Override public void start(Stage primaryStage) throws Exception{ BorderPane root = new BorderPane(); Scene scene = new…
2
votes
1 answer

Why does adding another element to a BorderPane mess up my formatting?

When creating a GridPane in the Center of a BorderPane it is quadratic and everything is fine: even when having an uneqal amount of columns and rows everything works perfectly: but as soon as I add a VBox or any other element to the left slot of…
HT256
  • 35
  • 5
2
votes
1 answer

JavaFX BorderPane set multiple buttons to Bottom?

Is it possible to have multiple Buttons set to Bottom (left, center, right)? This is what I tried: private Pane createPane() { BorderPane rootPane = new BorderPane(); rootPane.setTop(createMenueBar()); …
Chris
  • 1,828
  • 6
  • 40
  • 108
2
votes
1 answer

How can a class like BorderPane display the change when it is later being coded and not when initialised?

I was working on JavaFX, and I realised something which kept me thinking. So, there's a scene in my constructor which adds the variable root of the type BorderPane. In the main class, this class' constructor is called first, thereby initialising the…
2
votes
1 answer

Javafx BorderPane with split bar

How to put a split bar in between the left node and center node of a BorderPane? The UI should works as below: 1) When the application windows is resized horizontally, the center resizes horizontally. When the windows resized vertically, the…
len
  • 376
  • 2
  • 19
2
votes
0 answers

How do I switch between layouts in Javax?

I am designing a javaFX application. I am struggling with switching between BorderPanes. I have desgined two pages(FXML files) the first one is the home page which consists of some containers like (VBox, BorderPane, etc..). And the second one…
Martin
  • 131
  • 1
  • 8
2
votes
1 answer

javafx-Replacing background image of a BorderPane

I have a BorderPane on a Scene .& I have a background image in that pane. My code for that image: BorderPane B_pane = new BorderPane(); Image image = new Image("/Client/social3.png",width,height,false,true,true); ImageView imageView = new…
Utshaw
  • 4,166
  • 3
  • 20
  • 25
2
votes
2 answers

JavaFX BorderPane will not take on background colour

I'm trying to teach myself basic JavaFX by following the tutorials provided by Oracle. In the BorderPane tutorial (https://docs.oracle.com/javafx/2/layout/builtin_layouts.htm) it specifies a background colour. This is a snippet of my code: /** *…
user5446333
2
votes
1 answer

How to make node of borderpane fixed?

As stated at javafx docs for borderpane here, If the window is smaller than the space needed for the contents of each region, the regions might overlap. The overlap is determined by the order in which the regions are set. For example, if the…
Poliakoff
  • 1,592
  • 1
  • 21
  • 40
2
votes
1 answer

How to automatically resize buttons on BorderPane as the window is resized?

I am intermediate in Java and fairly new to JavaFX. I'm developing an application that makes use of BorderPane in JavaFX 8. I have two buttons at the bottom of the BorderPane. I want to place / align the buttons at the center of the bottom section…
Auro
  • 1,578
  • 3
  • 31
  • 62
2
votes
1 answer

How to replace a scene component with a button click inJavaFX

Am new to JavaFX and changing only a component of a scene on button click while other components of the scene remain unchanged is giving me hard times. I have a splitpane with 2 divisions. One part containing a HBox with buttons and a VBox on the…
David Kimz
  • 31
  • 2
  • 4
2
votes
1 answer

JavaFX: Menu items only shown as three dots when in BorderPane

I am trying to learn JavaFX and I've run into a problem with the Menus in my MenuBar. Here is a minimal example: public void start(Stage mainStage) throws Exception { BorderPane root = new BorderPane(); Scene scene = new Scene(root, 1200,…
fishgehoelz
  • 83
  • 1
  • 7
2
votes
2 answers

JavaFX center an resizable arc in a borderpane

I have a question. I am creating an application where an Arc length changes and I want that arc inside a borderpane, but when i change the length of the Arc it will get centered, so it doesn't look like a circle that's getting filled. Actually what…
Gilian Joosen
  • 486
  • 3
  • 21
1
2 3 4 5 6 7 8