Eclipse Juno WindowBuilder Palette is Empty(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.
这篇关于Eclipse Juno WindowBuilder 调色板为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse Juno WindowBuilder 调色板为空
基础教程推荐
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01