Compare commits
2
Commits
Toni
...
f05b0f0014
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f05b0f0014 | ||
|
|
1aa5b51e78 |
No files matched your search
@@ -25,11 +25,14 @@ public class Start
|
|||||||
ChatView view = new ChatView();
|
ChatView view = new ChatView();
|
||||||
GrafikView zeichenflaeche = view.getGvZeichenflaeche();
|
GrafikView zeichenflaeche = view.getGvZeichenflaeche();
|
||||||
zeichenflaeche.setModel(model);
|
zeichenflaeche.setModel(model);
|
||||||
GrafikController controller = new GrafikController(zeichenflaeche, model);
|
|
||||||
controller.registerEvents();
|
|
||||||
CommandController controller_commands = new CommandController(view);
|
CommandController controller_commands = new CommandController(view);
|
||||||
controller_commands.registerEvents();
|
controller_commands.registerEvents();
|
||||||
controller_commands.registerCommands();
|
controller_commands.registerCommands();
|
||||||
|
|
||||||
|
GrafikController controller = new GrafikController(zeichenflaeche, model, controller_commands);
|
||||||
|
controller.registerEvents();
|
||||||
|
|
||||||
view.setVisible(true);
|
view.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class GrafikController extends MouseAdapter implements MouseMotionListene
|
|||||||
private GrafikModel model;
|
private GrafikModel model;
|
||||||
private CommandSend commandSend;
|
private CommandSend commandSend;
|
||||||
|
|
||||||
public GrafikController(GrafikView view, GrafikModel model)
|
public GrafikController(GrafikView view, GrafikModel model, CommandController controller_commands)
|
||||||
{
|
{
|
||||||
this.view = view;
|
this.view = view;
|
||||||
this.model = model;
|
this.model = model;
|
||||||
|
|||||||
Reference in new issue
Block a user