Eclipse Juno WindowBuilder面板为空 [英] Eclipse Juno WindowBuilder Palette is Empty

查看:1125
本文介绍了Eclipse Juno WindowBuilder面板为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 Eclipse 4.2(Juno)用于Java EE ,并且刚刚安装了 WindowBuilder 插件.目前,我正在使用Swing组件构建Java SE应用程序.

I'm using Eclipse 4.2 (Juno) for Java EE and just installed WindowBuilder plug-n. At this time I'm building Java SE Application with Swing components.

Palette完全空(无窗口小部件).是安装不完整的信号还是我(希望)错过了明显的东西?

The Palette is completely empty (no widgets). Is it a sign of incomplete installation or have I (hopefully) missed something obvious?

我能够选择New -> Other -> WindowBuilder -> Swing Designer -> JPanel.

甚至不确定我还需要提供什么其他信息.

Not even sure what other information I need to provide.

预先感谢您的帮助.

我通过Help -> Install new software安装,遵循这些说明

让我失望的是,我在Eclipse社区论坛中发现您看到的是预期的行为.在您实际使用WindowBuilder编辑UI类之前,这些视图将为空. .".我不知道该怎么解释.

What throws me off is that in Eclipse Community Forum I found a post which answering a similar question states: "What you are seeing is the expected behaviour. Until you actually edit a UI class using WindowBuilder, those views will be empty.". I do not know how to interpret it.

更新:问题已解决

当我通过Create new visual classes图标创建新的JFrame时,我终于得到了Design视图以及充满所有组件的Palette和常规的Structure视图.

When I created a new JFrame via Create new visual classes icon I finally got Design view as well as Palette full of components and normal Structure view.

推荐答案

Eclipse中的Palette视图绑定到当前活动的Editor.因此,如果您没有编辑器,或者已选择并集中在调色板"视图上,则该视图将为空.因此,使调色板视图保持打开状态,然后创建一个JFrame java类.然后,右键单击Java类,并确保在WindowBuilder编辑器中将其打开.打开WindowBuilder可视编辑器,并且还打开了调色板"后,您应该会在其中看到假发.

The Palette view in Eclipse is tied to the currently active Editor. So if you don't have an Editor or you have selected and focused on the Palette view, it will be empty. So leave the palette view open, then create a JFrame java class. Then right-click the Java Class and make sure you are opening it in the WindowBuilder editor. Once the WindowBuilder visual editor is open, and you also have the Palette open, you should see the wigets populated there.

这篇关于Eclipse Juno WindowBuilder面板为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆