2 Commits
2 changed files with 6 additions and 3 deletions

No files matched your search

+5 -2
View File
@@ -25,11 +25,14 @@ public class Start
ChatView view = new ChatView();
GrafikView zeichenflaeche = view.getGvZeichenflaeche();
zeichenflaeche.setModel(model);
GrafikController controller = new GrafikController(zeichenflaeche, model);
controller.registerEvents();
CommandController controller_commands = new CommandController(view);
controller_commands.registerEvents();
controller_commands.registerCommands();
GrafikController controller = new GrafikController(zeichenflaeche, model, controller_commands);
controller.registerEvents();
view.setVisible(true);
}
@@ -23,7 +23,7 @@ public class GrafikController extends MouseAdapter implements MouseMotionListene
private GrafikModel model;
private CommandSend commandSend;
public GrafikController(GrafikView view, GrafikModel model)
public GrafikController(GrafikView view, GrafikModel model, CommandController controller_commands)
{
this.view = view;
this.model = model;