public CodePanel(Handler handler, int random) {
        super();

        if(random == 0) color = "_green";
        else if(random == 1) color = "_blue";
        else color = "_orange";

        //set LayoutMng
        this.setLayout(new MigLayout("fill"));

        //setLayout
        this.setBackground(Color.BLACK);

        codeBoxModel = new DefaultComboBoxModel<>(recentCodes);

        codeBox = new JComboBox<>(codeBoxModel);
        codeBox.setBackground(Color.black);
        codeBox.setEditable(true);
        codeBox.setForeground(GUI3.guiColor);
        codeBox.setFont(GUI3.INGRESS_FONT);
        codeBox.setUI((ComboBoxUI) MyComboBoxUI.createUI());
        codeBox.setBorder(new BorderUIResource.EtchedBorderUIResource(GUI3.guiColor, Color.GRAY));
        codeBox.setName("codeBox");
        codeBox.getEditor().getEditorComponent().setName("codeBoxEdit");
        codeBox.getEditor().getEditorComponent().addKeyListener(handler);


        JButton decode = new JButton("Decode");
        decode.setBackground(Color.BLACK);
        decode.setForeground(GUI3.guiColor);
        decode.setFont(GUI3.INGRESS_FONT);

        hide = new JLabel(makeImageIcon("/images/fold_left" + color + ".png"));
        hide.setForeground(GUI3.guiColor);
        hide.setFont(GUI3.INGRESS_FONT);
        hide.setName("hideSidebar");
        hide.setToolTipText("hide sidebar");
        hide.addMouseListener(handler);

        add(hide);
        add(codeBox, "growx, push");
        add(decode);
        decode.setActionCommand("decode");
        decode.addActionListener(handler);
    }