You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Start.java 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package chatprogramm;
  2. import chatprogramm.controller.ConnectController;
  3. import chatprogramm.controller.ReceiveAdapterController;
  4. import chatprogramm.controller.SendController;
  5. import chatprogramm.model.Transmitter;
  6. import chatprogramm.view.ChatView;
  7. /**
  8. *
  9. * @author Marian
  10. */
  11. public class Start {
  12. public Start()
  13. {
  14. ChatView view = new ChatView();
  15. Transmitter model = new Transmitter();
  16. ConnectController controllerConnect = new ConnectController(model, view);
  17. controllerConnect.registerEvents();
  18. SendController controllerSend = new SendController(model, view);
  19. controllerSend.registerEvents();
  20. ReceiveAdapterController rxAdapter = new ReceiveAdapterController(view);
  21. model.addObserver(rxAdapter);
  22. view.setTitle("ICQ 0.1 xD");
  23. view.setVisible(true);
  24. }
  25. /**
  26. * @param args the command line arguments
  27. */
  28. public static void main(String[] args)
  29. {
  30. Start start = new Start();
  31. }
  32. }