Step 1: Create a GUI application with the application wizard

Create a new desktop project

Start a new instance of Eclipse using a completely new Workspace and create a new desktop application using a wizard. Use 'tutorial3' as the project name, a custom files location, and 'com.company' as package prefix.

Import the project created in Part 2

Then, import the project created during Part 2 of the tutorial:

  1. In the 'Project Explorer' window, open the context menu and choose 'Import…​'.

  2. In the dialog window that opens, choose "Maven" → "Existing Maven Projects" and press "Next".

  3. Select root directory of the project created at Step 2 and press "Finish".

I need the Part 2 source code, where can I get it?
I do not see any Maven options in the "Import" window, what should I do?

If there are no Maven-related items in the Import project dialog window, then your installation of Eclipse is most likely missing the Maven integration plugin.

To fix that:

  1. Open "Help" → "Install New Software…​"

  2. Place this URL into the "Work with" field: https://download.eclipse.org/technology/m2e/releases/latest/

  3. Choose "Maven integration in Eclipse" → "M2E - Maven integration in Eclipse" feature to install and click Next.

  4. Press Finish in "Install details" window.

  5. Press "Restart Now" in the Eclipse restart confirmation window that appears after installation is complete.

Try to import the Maven project once again - the "Import" dialog should now contain the options for Maven projects.

Check the result

Here is the project layout you should get by now:

Project layout