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 8003099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:33:56+00:00 2026-06-04T16:33:56+00:00

I am trying to layout my screen in JavaFX and have trouble using GridPane.

  • 0

I am trying to layout my screen in JavaFX and have trouble using GridPane.
I have 2 rows – one of them is set to have percentHeight of 80 and the other of 20
but what I’m seeing is that one row is overlaping the other

here is a little illustration (if you can call it like that 🙂 ) that hopefully demonstrates what I mean (numbers indicate row numbers and ‘*’ represents the overlap)

1   label1     <--- belongs to row 1
1   list1
1   |
1   | 
1   |
12  |  *  label2   <---  belongs to row 2
12  |  *  list2
 2        |
 2        |

anyone encountered this problem? did I do something wrong?

  • 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-06-04T16:33:58+00:00Added an answer on June 4, 2026 at 4:33 pm

    Just find out what was wrong –
    in my layout i used nested gridpanes that their content was auto – generated without adding row constraints..

    As it found out if no row constraints is added to the gridpane a default ones is used, those defaults had a minimum size,
    this cause the gridpanes them self to have “undeclared”/implicit minimum size, this why the constraints that i added (80 : 20 percent) was ignored – because the implicit minimum size of the different grids didn’t left too much room for re-sizing, finally – because after calculating the minimum size of the grids there is not enough space in the page to show them – they overlaps.

    the disappointing thing is – that i used showGridLines and the lines shown didn’t reflect the minimum row size.

    the problem was solved after i manually added the row constraints with minimum size of 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple username/password login screen. I have the layout done,
I'm trying to create custom layout for android. It normally draws on screen, but
I am trying to implement the following screen layout using a CSS grid framework
I've being trying to display two graphics in one screen but I'm not able.
I am trying to get a layout that always takes up the entire screen,
I was trying to layout some debug information for my reading in html using
Im trying to create a layout in flex using mxml, the layout contains a
I'm trying create a scaling layout for an Android application. The whole screen should
I'm trying to use my layout file place rows of TextViews and Buttons. It
I am trying to set up a layout as such in an iPad application.

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.