public MainFrame(String username, String ip, int port) {
        super("Chat - " + username + " [" + ip + ":" + port + "]");

        this.username = username;
        this.ip = ip;
        this.port = port;

        packetFactory = new PacketFactory(ip, port);

        doAesthetics();

        setVisible(true);

        establishConnection();

        initializeThread();
    }