Search code examples
javaeclipseswtwindowsbuilder

Java Windowsbuilder is not showing anything in the design tab and no class name in the main tab


I created a composite visual class and received the "The type org.eclipse.swt.widgets.Composite is not accessible" error. I went into fix project set up and had to manually update the class path. The error has not gone away and the tab doesn't show the class name. The tab is invisible until I hover over it and then an "x" appears to close it.

Additionally half the time when I open the class it doesn't show the option to switch between source and design. If that happens I have to close the workspace and reopen it to get Eclipse to show the source and design tab.

I haven't added any code to the class. It's the skeleton code Eclipse provides when you click "Create New Visual Class -> SWT -> Composite". It's my first time messing with a windows builder. I was really hoping I wouldn't have to manually code all the dimensions in Swing.

Code and error messages


Solution

  • Go to Help -> Eclipse Marketplace -> filter by popular and click install on WindowBuilder. I had a similar error some time ago because I've installed WindowBuiler by installing the separate dependencies instead of click the install button in the marketplace