java中对应的.net usercontrol是什么?

发布于 2024-12-16 22:13:23 字数 158 浏览 2 评论 0 原文

对于.net 开发人员来说,用户控件至关重要。我正在尝试开发一个java swing应用程序。我想创建我的自定义“用户控件”,就像在 .net 中一样。但没有用户控件:)。

在某些地方我看到类似“javabean”的东西,但不清楚?有人可以指导我吗? 我如何在java中创建用户控件?

For .net developers usercontrols are vital. I am trying to develop a java swing application. I want to create my custom "usercontrols", just like in .net. But there is no usercontrol :).

In some places i see something like "javabean" but it is not clear ? Can anyone guide me ?
How can i create a usercontrol in java ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

草莓酥 2024-12-23 22:13:23

@Grook 的链接解释了 swing 组件的基础知识。但对我来说,我需要一些更特别和简单的解决方案。

基本上,jpanel 类似于.net 中的用户控件。

这是一个很好的教程,解释了如何使用 jpanels 及其与 .net 用户控件非常相似的可重用性。

http://video.codegear.com/jbuilder/2008/SwingDesigner /VisualInheritance/Visual%20Inheritance.htm

  • 该视频是关于 jbuilder IDE 的,但它与网豆。

@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

  • the video is about jbuilder IDE but it is the similar on netbeans .
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文