Eclipse Juno WindowBuilder Palette is Empty

℡╲_俬逩灬. 提交于 2019-12-11 01:59:58

问题


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.

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

I was able to select New -> Other -> WindowBuilder -> Swing Designer -> JPanel.

Not even sure what other information I need to provide.

Thank you in advance for your help.

EDIT:

I installed via Help -> Install new software Followed these instructions.

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.

UPDATE: Problem solved

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.


回答1:


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.



来源:https://stackoverflow.com/questions/15963082/eclipse-juno-windowbuilder-palette-is-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!