Eclipse Juno WindowBuilder 调色板为空

我正在使用 Eclipse 4.2 (Juno) for 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 ->其他->窗口生成器->Swing 设计师 ->JPanel.

甚至不确定我需要提供哪些其他信息.

Not even sure what other information I need to provide.

提前感谢您的帮助.

我是通过 Help -> 安装的安装新软件遵循这些说明.

让我失望的是,在 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 视图与当前活动的编辑器相关联.因此,如果您没有编辑器,或者您选择并专注于 Palette 视图,它将是空的.所以让调色板视图保持打开状态,然后创建一个 JFrame java 类.然后右键单击 Java 类并确保在 WindowBuilder 编辑器中打开它.一旦 WindowBuilder 可视化编辑器打开,并且您还打开了 Palette,您应该会看到那里填充了 wigets.

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.

相关文章