【发布时间】:2018-08-31 14:06:02
【问题描述】:
我是 codenameone 的新手。
我在新的 Gui Builder 中使用 ClassName AppSplash 制作了一个表单组件。 在那个 AppSplash 类中,来自 Gui 我有两个容器“Container1”和“Container2”。 在 Container2 中,我有一个名为“Memebers_Count”的标签。 我从另一个类实例化这个 AppSplash,比如
AppSlpash as = new AppSplash()
如何访问标签“Members_Count”以更改其显示的文本?
我试图做一些类似的事情 as.getComponentAt(0).getComponentAt(1)
但是第二个 getComponentAt(1) 在 Netbeans 中显示为 erron,并显示“找不到符号:getComponentAt(1)”,而第一个 getComponentAt 没有错误。
感谢任何帮助
【问题讨论】:
标签: codenameone