package kontakte; | package kontakte; | ||||
import kontakte.controller.Controller; | |||||
import kontakte.model.Model; | |||||
import kontakte.view.View; | import kontakte.view.View; | ||||
/** | /** | ||||
public Main() | public Main() | ||||
{ | { | ||||
View v = new View(); | View v = new View(); | ||||
Model m = new Model(); | |||||
Controller c = new Controller(v, m); | |||||
c.registerEvents(); | |||||
c.registerCommands(); | |||||
v.setVisible(true); | v.setVisible(true); | ||||
} | } | ||||
@Override | @Override | ||||
public void execute() | public void execute() | ||||
{ | { | ||||
view.getFileChooser().showOpenDialog(view); | |||||
String fileAdd = view.getFileChooser().getSelectedFile().getAbsolutePath(); | |||||
view.getTextFileAdress().setText(fileAdd); | |||||
} | } | ||||
@Override | @Override |