Using Eclipse to create a model view presenter project in Java
Some instructions on how to create a very simple Model View Presenter example in Java in the Eclipse development environment. A reference I found useful, from which I re-use all the code in this post: http://www.dreamincode.net/forums/topic/353210-swing-passive-model-view-presenter-in-5-minutes/ Step 1: Create a new Eclipse project In Eclipse select File > New > Java Project. Give your project a name and select the JRE execution environment. For this example I am using JRE-8: Step 2: Create the Model class Right-click the src folder in your Eclipse project. Select New > Class and name it 'Model': Model.java [code language="java"] public class Model { private String password; public Model() { password = "password"; } public void setPassword(String pass) { password = pass; } public String getPassword() { return password; } } [/code] Step 3:...