-->

Creating a SWING app with Eclipse Window Builder

2019-06-17 07:12发布

问题:

I am using Eclipse Indigo on Mac. I just set up the Window Builder tool however for some reason I can not create a new project with it. I select the Swing Designer -> Application Window option another window pops up and asks me for the source folder, project name etc. but when I try to type a name in the source folder it says file cannot be found and when I try to browse there is nothing to select. Does anyone have an idea about whats going on ? thanks

回答1:

You have to create a Java project then you have to create a source folder and a package, after doing that you can select the created package on the Package explorer and create a new Application Window or JFrame from WindowBuilder menu.



回答2:

This is the snapshots of my environment. On the eclipse IDE Right click on the package, Open ---File---New---Other---Then type Jframe. Click on Next and complete the wizard.

Underneath the capture you can switch between the source code and design view

snapshots of my environment

snapshots of my environment