IntelliJ Java IDE
The moose likes JavaFX and the fly likes Grid Layout : Gap appears mysteriously in between cells. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Reply Bookmark "Grid Layout : Gap appears mysteriously in between cells." Watch "Grid Layout : Gap appears mysteriously in between cells." New topic
Author

Grid Layout : Gap appears mysteriously in between cells.

Anirban Chowdhury
Ranch Hand

Joined: Aug 05, 2008
Posts: 30
Hi geeks,
I have a problem at hand which I really cant figure out. I am using the below attached code


The only problem which happens is when I run this program, I should get 3 adjacent rectangles, however, I get a gap b.w the 1st and the 2nd one. (Please see the pic attached.) Can someone please help?? This is really urgent for me to complete. Thanks a lot in advance...

[Thumb - grid_lay.jpg]
 Filename grid_lay.jpg [Disk] Download
 Description
 Filesize 18 Kbytes
 Downloaded:  12 time(s)


To living life on the edge! I blog my experiences @ http://anirbanchowdhury.wordpress.com.
Anirban Chowdhury
Ranch Hand

Joined: Aug 05, 2008
Posts: 30
Guys, I got the reason. The width of the subsequent cells of rows in a grid is governed by the 1st row's cells width. Thanks anyways.
 
 
subject: Grid Layout : Gap appears mysteriously in between cells.
 
Threads others viewed
Change the Tick Label Value of X Axis in Java FX
JavaFX Button: You'd think this would be simple....
How does JavaFX relate in the WorkPlace.
JavaFX inWM6.5 / Download a file from internet
JavaFX "wonders"
developer file tools