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;
|
|
|
|
import model.VoIP;
|
|
|
|
/**
|
|
|
|
* Builder Class
|
|
|
|
* @author Normal
|
|
|
|
*/
|
|
|
|
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-08 22:02:20 +00:00
|
|
|
VoIP model = new VoIP(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");
|
|
|
|
view.getTxtcallIP().setText("192.168.100.xxx");
|
2019-06-15 08:13:03 +00:00
|
|
|
//view.setExtendedState(view.MAXIMIZED_BOTH);
|
|
|
|
view.setSize(300, 200);
|
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();
|
|
|
|
}
|
|
|
|
}
|