Swing Matisse GUI - 无法将定制 bean 添加到“其他组件”

发布于 2024-07-08 20:40:26 字数 179 浏览 6 评论 0原文

我创建了一个带有属性(getter/setter)的自定义 ValueObject 类,我需要这个类来对表单上的元素进行数据绑定。 所以我想将它拖到 matisse 编辑器上的“其他组件”,这样我就可以绑定它 - 但什么也没有发生......有类似的经历吗? NetBeans 6.5 和 MyEclipse 7.0M2 上都发生同样的问题

I made a custom ValueObject class with properties (getters/setters) and I need this class for data binding of elements on form. So I want to drag it to "other components" on matisse editor so I can bind it - and nothing happens.... Any similar experiences? The same issue is happening both on NetBeans 6.5 and MyEclipse 7.0M2

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

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

发布评论

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

评论(3

丑丑阿 2024-07-15 20:40:26

将组件添加到控制调色板的常用方法是通过调色板管理器:右键单击调色板(例如“其他组件”区域)并选择调色板管理器,然后从适当的位置添加它(您当前的项目通过声音)

你的项目需要干净地编译才能做到这一点。

The usual method for adding components to the control palette is through the Palette Manager: right-click the palette (the 'other components' area for example) and select Palette Manager, then add it from the appropriate place (your current project by the sound of it.)

Your project needs to compile cleanly to do this.

梦里兽 2024-07-15 20:40:26

是的,我已经得出结论,你只能添加编译的类,甚至成功过一次,但现在我编译了常规类(实现一个接口),它不会掉下来。我把它放在自定义调色板区域的第一个作为小部件,然后它就形成了。

谢谢,将尝试找到一些解决方法......希望很快......

yes, I've concluded this, you can add only compiled class, it was even successfull once, but now I have regular class (which implements one interface) compiled, it wouldn't drop in. I put it first on custom palette area as widget and from there it went onto form.

Thanks, will try to find some workaround.. hope soon...

木格 2024-07-15 20:40:26

找到答案:当 JRE 为 1.6 时,MyEclipse 遇到 matisse 表单问题。 在 JRE 1.5 中一切正常。 他们说它将在 MyEclipse 7.1 中修复

found answer: MyEclipse is having problems with matisse forms when JRE is 1.6. In JRE 1.5 everything works fine. They said it will be fixed in MyEclipse 7.1

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