private void initOptionsBarMenu(Color bg) {
        this.optionsBarMenu = new JPanel();
        this.optionsBarMenu.setBackground(bg);
        this.optionsBarMenu.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));

        // size
        final Numberfield numfield = new Numberfield(this.skin.getOptionsbarHeight(), 3, bg, strSizeFieldTitle, strNumfieldHeight, true) {
            private final long serialVersionUID = 1L;

            @Override
            public void onKeyReleased(String input) {
                if (!GeneralChangesMenu.this.skin.setOptionsbarHeight(parseInt(input))) {
                    update(Color.RED);
                }
            }

            @Override
            public void resetOnClick() {
                GeneralChangesMenu.this.skin.setOptionsbarHeight(FAILURE);
                update(GeneralChangesMenu.this.skin.getOptionsbarHeight());
            }
        };

        // checkbox
        boolean b = this.skin.getOptionsbarHeight() == 0;
        this.optionsBarMenu.add(new CheckField(b, bg, strHideFieldTitle, strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                if (selected) {
                    GeneralChangesMenu.this.skin.setOptionsbarHeight(0);
                    numfield.setVisible(false);

                } else {
                    GeneralChangesMenu.this.skin.setOptionsbarHeight(UISizeInits.OPTIONSBAR.getHeight());
                    numfield.update(GeneralChangesMenu.this.skin.getOptionsbarHeight());
                    numfield.setVisible(true);
                }
            }
        });

        this.optionsBarMenu.add(numfield);
    }