public Server() {
        DrawPane dp = new DrawPane();
        setContentPane(dp);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(width, height);
        setVisible(true);
        for (; ; ) {
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            this.repaint();
            if (bf != null) {
            new Thread(new MessageSender(user, port, convert(bf))).start();
            }
        }
    }