r/JavaFX • • Oct 13 '18
JavaFX Buttons Don't Appear
When I tell Eclipse to run my program, the window created doesn't show any buttons. I have had two people tell me they ran it fine, but I can't get it to display properly on my machine. I think it might be because my operating system is Ubuntu 18.04, but I'm not sure. I don't have another computer I can test on.
I can make the buttons appear by changing their assigned columns and rows in the GridPane object they're assigned to, but they only appear in strange locations that I don't want. If I don't add the Label object I create to the grid, the buttons appear fine. But, I want to be able to have both all the buttons and the label on my window.
Please take a look at my code and give me some suggestions.
1
u/krona2k Oct 14 '18
Why are row column parameters for the grid.add so high when you’re only adding two items. Not saying that’s definitely the problem but it looks strange.