Hello,
Firstly, sorry for my bad English.
I have a question to ask you, I try to create a simply application in JavaFX that use property and binding.
I reduce my application at the minimal for show you my problem.
I would like to put a red rectangle at the middle of borderPane, this rectangle is into an HBox (I think the problem is here) and i would like that rectangle grow up or reduce in the same time that is container (the HBox).
This is my code :
But it does'nt work... When I slowly resize my Frame, it's work, nevertheless, when I fastly resize my Frame, the rectangle is not in the middle (not the same size too) and we can see the same things when we minimize and maximize the Frame.
I don't understand why it does'nt work. So if you can help me to explain how do this for a rectangle in HBox thank you.
Thank you for your help,
Sorry for my bad english again.
Florian.
Firstly, sorry for my bad English.
I have a question to ask you, I try to create a simply application in JavaFX that use property and binding.
I reduce my application at the minimal for show you my problem.
I would like to put a red rectangle at the middle of borderPane, this rectangle is into an HBox (I think the problem is here) and i would like that rectangle grow up or reduce in the same time that is container (the HBox).
This is my code :
But it does'nt work... When I slowly resize my Frame, it's work, nevertheless, when I fastly resize my Frame, the rectangle is not in the middle (not the same size too) and we can see the same things when we minimize and maximize the Frame.
I don't understand why it does'nt work. So if you can help me to explain how do this for a rectangle in HBox thank you.
Thank you for your help,
Sorry for my bad english again.
Florian.