2019-05-17 14:47:30 +00:00
|
|
|
/*
|
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package phone;
|
|
|
|
|
|
|
|
import controller.CommandController;
|
|
|
|
import gui.Hauptfenster;
|
2019-06-08 22:02:20 +00:00
|
|
|
import java.net.InetAddress;
|
|
|
|
import java.net.UnknownHostException;
|
2019-05-17 14:47:30 +00:00
|
|
|
import java.text.ParseException;
|
2019-06-17 07:14:06 +00:00
|
|
|
import model.SIPmodel;
|
2019-05-17 14:47:30 +00:00
|
|
|
/**
|
2019-06-15 10:59:35 +00:00
|
|
|
* Builder Class / Start Klasse des Programmes
|
|
|
|
* @author Jan
|
2019-05-17 14:47:30 +00:00
|
|
|
*/
|
|
|
|
public class Start
|
|
|
|
{
|
2019-06-08 22:02:20 +00:00
|
|
|
public Start() throws ParseException, UnknownHostException
|
2019-05-17 14:47:30 +00:00
|
|
|
{
|
|
|
|
Hauptfenster view = new Hauptfenster();
|
2019-06-17 07:14:06 +00:00
|
|
|
SIPmodel model = new SIPmodel(view);
|
2019-05-17 14:47:30 +00:00
|
|
|
|
|
|
|
CommandController controller = new CommandController(model, view);
|
|
|
|
controller.registerEvents();
|
2019-06-08 22:02:20 +00:00
|
|
|
controller.registerCommands();
|
|
|
|
|
|
|
|
view.getLblmyIP().setText(InetAddress.getLocalHost().getHostAddress());
|
|
|
|
view.getTxtServerIP().setText("192.168.100.11");
|
2019-06-15 09:39:26 +00:00
|
|
|
view.getTxtcallIP().setText("121");
|
2019-06-15 08:13:03 +00:00
|
|
|
//view.setExtendedState(view.MAXIMIZED_BOTH);
|
2019-06-15 10:59:35 +00:00
|
|
|
view.setSize(400, 400);
|
2019-05-17 14:47:30 +00:00
|
|
|
view.setTitle("TestOberfläche VoIP Phone");
|
|
|
|
view.setVisible(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param args the command line arguments
|
|
|
|
*/
|
2019-06-08 22:02:20 +00:00
|
|
|
public static void main(String[] args) throws ParseException, UnknownHostException
|
2019-05-17 14:47:30 +00:00
|
|
|
{
|
|
|
|
new Start();
|
|
|
|
}
|
|
|
|
}
|