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

        // position
        Position pos = this.skin.getSecurityMenu_Position();
        boolean[] active = { true, true, true, true, true, true, true, true, true };
        this.secOptMenu.add(new PositionField(pos, active, bg, strPosFieldTitle) {
            private final long serialVersionUID = 1L;

            @Override
            public void toprightOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.TOPRIGHT);

            }

            @Override
            public void topleftOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.TOPLEFT);

            }

            @Override
            public void topOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.TOP);

            }

            @Override
            public void centerrightOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.RIGHT);

            }

            @Override
            public void centerleftOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.LEFT);

            }

            @Override
            public void centerOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.CENTER);

            }

            @Override
            public void bottomrightOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.BOTTOMRIGHT);

            }

            @Override
            public void bottomleftOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.BOTTOMLEFT);

            }

            @Override
            public void bottomOnPressed() {
                GeneralChangesMenu.this.skin.setSecurityMenuPosition(Position.BOTTOM);

            }
        });

        // padding
        final int[] padding = this.skin.getSecurityMenu_Padding();
        this.secOptMenu.add(new PaddingField(padding, bg, strPaddingFieldTitle) {
            private final long serialVersionUID = 1L;

            private int[] tmp = (padding == null) ? new int[] { 0, 0, 0, 0 } : padding;

            @Override
            public void topFieldOnKeyReleased(String input) {
                controlAndSet(input, 1);
            }

            @Override
            public void rightFieldOnKeyReleased(String input) {
                controlAndSet(input, 2);
            }

            @Override
            public void leftFieldOnKeyReleased(String input) {
                controlAndSet(input, 0);
            }

            @Override
            public void bottomFieldOnKeyReleased(String input) {
                controlAndSet(input, 3);
            }

            private void controlAndSet(String s, int index) {
                int i = FAILURE;

                if (s != null) {
                    try {
                        i = Integer.parseInt(s);
                    } catch (NumberFormatException e) {
                        i = FAILURE;
                    }
                }

                if (i == FAILURE) {
                    GeneralChangesMenu.this.skin.setSecurityMenuPadding(null);
                } else {
                    this.tmp[index] = i;
                    GeneralChangesMenu.this.skin.setSecurityMenuPadding(this.tmp);
                }
            }

            @Override
            public int[] reset() {
                GeneralChangesMenu.this.skin.setSecurityMenuPadding(null);
                this.tmp = new int[] { 0, 0, 0, 0 };
                return this.tmp;
            }
        });

        // checkbox
        boolean b = !this.skin.getCommandButtonVisibility(CommandButton.LOCK);
        this.secOptMenu.add(new CheckField(b, bg, strHideFieldTitle + " (" + strCommandBtn_lock + ")", strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                GeneralChangesMenu.this.skin.setCommandButtonVisibility(CommandButton.LOCK, !selected);
            }
        });

        // checkbox
        b = !this.skin.getCommandButtonVisibility(CommandButton.SWITCH);
        this.secOptMenu.add(new CheckField(b, bg, strHideFieldTitle + " (" + strCommandBtn_switch + ")", strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                GeneralChangesMenu.this.skin.setCommandButtonVisibility(CommandButton.SWITCH, !selected);
            }
        });

        // checkbox
        b = !this.skin.getCommandButtonVisibility(CommandButton.LOGOUT);
        this.secOptMenu.add(new CheckField(b, bg, strHideFieldTitle + " (" + strCommandBtn_logout + ")", strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                GeneralChangesMenu.this.skin.setCommandButtonVisibility(CommandButton.LOGOUT, !selected);
            }
        });

        // checkbox
        b = !this.skin.getCommandButtonVisibility(CommandButton.PASSWORD);
        this.secOptMenu.add(new CheckField(b, bg, strHideFieldTitle + " (" + strCommandBtn_passwd + ")", strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                GeneralChangesMenu.this.skin.setCommandButtonVisibility(CommandButton.PASSWORD, !selected);
            }
        });

        // checkbox
        b = !this.skin.getCommandButtonVisibility(CommandButton.TASKMANAGER);
        this.secOptMenu.add(new CheckField(b, bg, strHideFieldTitle + " (" + strCommandBtn_taskman + ")", strHide) {
            private final long serialVersionUID = 1L;

            @Override
            public void btnPressed(boolean selected) {
                GeneralChangesMenu.this.skin.setCommandButtonVisibility(CommandButton.TASKMANAGER, !selected);
            }
        });
    }