Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can someone explain the use of two zeros in the following code?

if it's for integer, how can i change it to String because the name of the city will be in String type. Thank you in advance.

What I have tried:

gridpane.add(new Label("City:"), 0, 0); // add to grid pane
Posted
Updated 9-Feb-18 1:03am

1 solution

They specify the column and row to add the value to: GridPane (JavaFX 8)[^]
 
Share this answer
 
Comments
Maciej Los 10-Feb-18 4:57am    
Short And To The Point!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900