java中叠瓦面板的问题
我在另一个面板中有一个面板,我想从父面板访问子面板的成员。父面板中的子面板引用看不到它拥有的所有成员。谢谢! PS:我无法访问的成员是公开的
i have a panel in another panel and i want to access an member of the child panel from the parent panel. The child panel reference that is in the parent panel doesn't see all the members that it has. Thanks!
PS : the members i can't access are public
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否无法在子面板上调用
getComponents()
并获取所有图形成员?如果不是的话,说明问题还不够清楚。are you not able to call a
getComponents()
on the child panel and get all graphical members? If not, the question is not clear enough.我做了一个小测试,它有效,但在我的项目中却无效。我想我在某个地方犯了错误。
这是测试:
I made a little test and it works, but on my project doesn't. I think i make a mistake somewhere.
Here is the test: