与用户界面相关的问题 [英] Question related to user interface

查看:72
本文介绍了与用户界面相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以在下面的代码中解释两个零的使用吗?



如果它是整数,我怎么能把它改成String因为城市的名字将是String类型。提前谢谢。



我尝试了什么:



gridpane .add(新标签(城市:),0,0); //添加到网格窗格

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

推荐答案

它们指定要将值添加到的列和行: GridPane(JavaFX 8) [ ^ ]
They specify the column and row to add the value to: GridPane (JavaFX 8)[^]


这篇关于与用户界面相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆