12345678910111213141516171819202122232425262728293031323334353637383940 |
- package chatprogramm;
-
- import chatprogramm.controller.ConnectController;
- import chatprogramm.controller.ReceiveAdapterController;
- import chatprogramm.controller.SendController;
- import chatprogramm.model.Transmitter;
- import chatprogramm.view.ChatView;
-
- /**
- *
- * @author Marian
- */
- public class Start {
-
- public Start()
- {
- ChatView view = new ChatView();
- Transmitter model = new Transmitter();
-
- ConnectController controllerConnect = new ConnectController(model, view);
- controllerConnect.registerEvents();
-
- SendController controllerSend = new SendController(model, view);
- controllerSend.registerEvents();
-
- ReceiveAdapterController rxAdapter = new ReceiveAdapterController(view);
- model.addObserver(rxAdapter);
-
- view.setVisible(true);
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- Start start = new Start();
- }
-
- }
|