SimPanel(Console con) {
        this.console = con;
        initComponents();
        setRunningIndicator(false);

        syslogCombo.addItem(Level.OFF);
        syslogCombo.addItem(Level.ALL);
        syslogCombo.addItem(Level.SEVERE);
        syslogCombo.addItem(Level.WARNING);
        syslogCombo.addItem(Level.INFO);
        syslogCombo.addItem(Level.CONFIG);
        syslogCombo.addItem(Level.FINE);
        syslogCombo.addItem(Level.FINER);
        syslogCombo.addItem(Level.FINEST);
        syslogCombo.setSelectedItem(Level.OFF);

        script.addKeyListener(new KeyAdapter() {

            @Override
            public void keyTyped(KeyEvent e) {
                if (e.isControlDown() || e.isAltDown() || e.isConsumed()) {
                    return;
                }
                if (!modified) {
                    modified = true;
                    console.toggleTitle(SimPanel.this);
                }
            }

            @Override
            public void keyPressed(KeyEvent e) {
                if (!e.isControlDown()) {
                    return;
                }
                if (e.getKeyCode() == KeyEvent.VK_S) {
                    save();
                } else if (e.getKeyCode() == KeyEvent.VK_R) {
                    run();
                }
            }
        });

        script.setFont(new java.awt.Font("Monospaced", 0, script.getFont().getSize())); // NOI18N
        stdout.setFont(new java.awt.Font("Monospaced", 0, stdout.getFont().getSize())); // NOI18N
        stderr.setFont(new java.awt.Font("Monospaced", 0, stderr.getFont().getSize())); // NOI18N

        split.setResizeWeight(0.75);
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                split.setDividerLocation(0.65);
            }
        });
    }