java中对应的.net usercontrol是什么?
对于.net 开发人员来说,用户控件至关重要。我正在尝试开发一个java swing应用程序。我想创建我的自定义“用户控件”,就像在 .net 中一样。但没有用户控件:)。
在某些地方我看到类似“javabean”的东西,但不清楚?有人可以指导我吗? 我如何在java中创建用户控件?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Grook 的链接解释了 swing 组件的基础知识。但对我来说,我需要一些更特别和简单的解决方案。
基本上,jpanel 类似于.net 中的用户控件。
这是一个很好的教程,解释了如何使用 jpanels 及其与 .net 用户控件非常相似的可重用性。
http://video.codegear.com/jbuilder/2008/SwingDesigner /VisualInheritance/Visual%20Inheritance.htm
@Grook's link explains the basics of swing components. But for me , I need something more special and easy solution.
Basically a jpanel is similar to a usercontrol in .net.
Here is a good tutorial that explains using jpanels and their reusability which is so similar to .net usercontrols.
http://video.codegear.com/jbuilder/2008/SwingDesigner/VisualInheritance/Visual%20Inheritance.htm