The Swing client
Now we will create the “real” Java SE application that will be packaged together with our EAR package. Go to the menus, select File > New Project… > Java EE > Enterprise Application Client:
Do note that the application class is called MainSwing. I also check Enable Contexts and Dependency Injection.