private void createFileMenu() {
        JMenu menu = new JMenu("Chatař");

        JMenuItem settings = new JMenuItem("Nastavení");
        settings.setIcon( new ImageIcon("img/settings-icon.png") );
        settings.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.CTRL_MASK) );
        settings.addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                SettingsWindow.getInstance().setVisible(true);
            }
        });

        JMenuItem commands = new JMenuItem("Vlastní příkazy");
        commands.setIcon( new ImageIcon("img/commands-icon.png") );
        commands.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_MASK) );
        commands.addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                CustomCommandsWindow.getInstance().setVisible(true);
            }
        });

        clearChat = new JMenuItem("Vymazat chat");
        clearChat.setVisible(false);
        clearChat.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.CTRL_MASK) );
        clearChat.addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                InputHandler.handleClear();
            }
        });

        closePanel = new JMenuItem("Zavřít panel");
        closePanel.setVisible(false);
        closePanel.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.CTRL_MASK) );
        closePanel.addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                actionClosePanel();
            }
        });

        JMenuItem close = new JMenuItem("Ukončit program");
        close.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_Q, InputEvent.CTRL_MASK) );
        close.addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                boolean ask = Settings.getInstance().isEventEnabled("ask-for-quit");
                boolean close = ask ? MessageDialog.confirmQuestion("Ukončit aplikaci",
                                "Opravdu chcete ukončit aplikaci?", MainWindow.getInstance() ) : true;
                if (close) {
                    ClientLogger.quit();
                    System.exit(0);
                }
            }
        });

        menu.add(settings);
        menu.add(commands);
        menu.add(clearChat);
        menu.add(closePanel);
        menu.add(close);

        add(menu);
    }