public NetworkWindow(){
        this.setTitle("Connect with IP address");
        setSize(300,75);
        ipField = new JTextField();
        enter = new JButton("Enter");

        enter.addActionListener(new FetchIP());

        setLayout(new BorderLayout());
        add(ipField);
        add(enter, BorderLayout.EAST);
    }