Swing Matisse GUI - 无法将定制 bean 添加到“其他组件”
我创建了一个带有属性(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将组件添加到控制调色板的常用方法是通过调色板管理器:右键单击调色板(例如“其他组件”区域)并选择调色板管理器,然后从适当的位置添加它(您当前的项目通过声音)
你的项目需要干净地编译才能做到这一点。
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.
是的,我已经得出结论,你只能添加编译的类,甚至成功过一次,但现在我编译了常规类(实现一个接口),它不会掉下来。我把它放在自定义调色板区域的第一个作为小部件,然后它就形成了。
谢谢,将尝试找到一些解决方法......希望很快......
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...
找到答案:当 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