private void initialize() {
        this.setName(Constant.messages.getString("keyboard.options.title"));
        this.setLayout(new GridBagLayout());

        GridBagConstraints gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.gridwidth = 5;
        gbc.anchor = GridBagConstraints.LINE_START;
        gbc.fill = GridBagConstraints.HORIZONTAL;

        tkeyboardOptionsPanel = new KeyboardOptionsPanel(getShortcutModel());

        this.add(new TableFilterPanel<>(tkeyboardOptionsPanel.getTableImpl()), gbc);
        
        gbc.gridy++;
        gbc.weighty = 1.0;
        gbc.weightx = 1.0;
        gbc.fill = GridBagConstraints.BOTH;
        this.add(tkeyboardOptionsPanel, gbc);

        gbc.gridy++;
        gbc.weighty = 0.0;
        gbc.gridwidth = 1;
        gbc.fill = GridBagConstraints.NONE;

        gbc.weightx = 1.0;
        this.add(new JLabel(), gbc);  // Spacer
        gbc.weightx = 0.0;

        if (DesktopUtils.canOpenUrlInBrowser()) {
        	// No point in showing these if they cant be used..
            gbc.gridx++;
            this.add(getCheatsheetAction(), gbc);
            gbc.gridx++;
            this.add(getCheatsheetKey(), gbc);
        }
        gbc.gridx++;
        this.add(getResetButton(), gbc);

        gbc.gridx++;
        gbc.weightx = 1.0;
        this.add(new JLabel(), gbc);  // Spacer
        
	}
private void initialize ( ) { this . setName ( Constant . messages . getString ( "keyboard.options.title" ) ) ; this . setLayout ( new GridBagLayout ( ) ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = 0 ; gbc . gridy = 0 ; gbc . gridwidth = 5 ; gbc . anchor = GridBagConstraints . LINE_START ; gbc . fill = GridBagConstraints . HORIZONTAL ; tkeyboardOptionsPanel = new KeyboardOptionsPanel ( getShortcutModel ( ) ) ; this . add ( new TableFilterPanel < > ( tkeyboardOptionsPanel . getTableImpl ( ) ) , gbc ) ; gbc . gridy ++ ; gbc . weighty = 1.0 ; gbc . weightx = 1.0 ; gbc . fill = GridBagConstraints . BOTH ; this . add ( tkeyboardOptionsPanel , gbc ) ; gbc . gridy ++ ; gbc . weighty = 0.0 ; gbc . gridwidth = 1 ; gbc . fill = GridBagConstraints . NONE ; gbc . weightx = 1.0 ; this . add ( new JLabel ( ) , gbc ) ; gbc . weightx = 0.0 ; if ( DesktopUtils . canOpenUrlInBrowser ( ) ) { gbc . gridx ++ ; this . add ( getCheatsheetAction ( ) , gbc ) ; gbc . gridx ++ ; this . add ( getCheatsheetKey ( ) , gbc ) ; } gbc . gridx ++ ; this . add ( getResetButton ( ) , gbc ) ; gbc . gridx ++ ; gbc . weightx = 1.0 ; this . add ( new JLabel ( ) , gbc ) ; }
This method initializes this