Eclipse (JAVA) 中的 Window Builder 无法加载
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14148980/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Window Builder in Eclipse (JAVA) Won't Load
提问by jlacroix
I'm in the process of learning JAVA and was looking for a GUI editor/creator for use within Eclipse. I Googled and found "WindowBuilder". I installed it via these instructions:
我正在学习 JAVA,并正在寻找可在 Eclipse 中使用的 GUI 编辑器/创建器。我用谷歌搜索并找到了“WindowBuilder”。我通过以下说明安装了它:
https://developers.google.com/java-dev-tools/wbpro/installation/
https://developers.google.com/java-dev-tools/wbpro/installation/
When I installed it, I checked each checkbox to install everything. However, when I create a class to create a GUI, and then I click on the "Design" tab, I get "This is not a GUI class and can't be edited graphically" (even though I chose an option for WindowBuilder when creating the class).
当我安装它时,我检查了每个复选框以安装所有东西。但是,当我创建一个类来创建 GUI,然后单击“设计”选项卡时,我得到“这不是一个 GUI 类,无法以图形方式编辑”(即使我选择了 WindowBuilder 的选项,当创建类)。
When I open classes that already contain (working) GUIs, I get "Unknown GUI Toolkit."
当我打开已经包含(工作)GUI 的类时,我得到“Unknown GUI Toolkit”。
Is there a way to get WindowBuilder running, or perhaps is there a better solution?
有没有办法让 WindowBuilder 运行,或者有更好的解决方案?
回答by jlacroix
This is fixed. The JRE option in Eclipse properties was invalid. It pointed to JRE6 instead of JRE7. I'm not sure how Eclipse was ever working in the first place. All set. Thanks!
这是固定的。Eclipse 属性中的 JRE 选项无效。它指向 JRE6 而不是 JRE7。我不确定 Eclipse 最初是如何工作的。搞定。谢谢!
回答by amer
Tab "Help"-> "Install New Software" .. in "Work with " , enter Name : Kepler URL : http://download.eclipse.org/releases/keplerand ADD
选项卡“帮助”->“安装新软件”..在“使用”中,输入名称:Kepler URL:http: //download.eclipse.org/releases/kepler和 ADD
and on "type filter text" write "Swing Designer" . install that and you should be fine ..
并在“类型过滤器文本”上写下“Swing Designer”。安装它,你应该没问题..

