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.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package phone;
  7. import controller.CommandController;
  8. import gui.Hauptfenster;
  9. import java.net.InetAddress;
  10. import java.net.UnknownHostException;
  11. import java.text.ParseException;
  12. import model.SIPmodel;
  13. /**
  14. * Builder Class / Start Klasse des Programmes
  15. * @author Jan
  16. */
  17. public class Start
  18. {
  19. public Start() throws ParseException, UnknownHostException
  20. {
  21. Hauptfenster view = new Hauptfenster();
  22. SIPmodel model = new SIPmodel(view);
  23. CommandController controller = new CommandController(model, view);
  24. controller.registerEvents();
  25. controller.registerCommands();
  26. view.getLblmyIP().setText(InetAddress.getLocalHost().getHostAddress());
  27. view.getTxtServerIP().setText("192.168.100.11");
  28. view.getTxtcallIP().setText("121");
  29. //view.setExtendedState(view.MAXIMIZED_BOTH);
  30. view.setSize(400, 400);
  31. view.setTitle("TestOberfläche VoIP Phone");
  32. view.setVisible(true);
  33. }
  34. /**
  35. * @param args the command line arguments
  36. */
  37. public static void main(String[] args) throws ParseException, UnknownHostException
  38. {
  39. new Start();
  40. }
  41. }