Buggy code:
public class OutlierCorrectionDialog extends JPanel { private final OutlierCorrectionParameters outlierParameters ; public OutlierCorrectionDialog ( ) { } public OutlierCorrectionDialog ( int maxWindowSize ) { } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { GridBagConstraints gridBagConstraints ; buttonGroup1 = new ButtonGroup ( ) ; jPReplaceIndividualOutliers = new JPanel ( ) ; jLabel1 = new JLabel ( ) ; jLabel2 = new JLabel ( ) ; jSWindSize = new JSpinner ( ) ; jTFFence = new JTextField ( ) ; jPSetRegionToConstantValue = new JPanel ( ) ; dimPanel1 = new org . glotaran . core . main . common . DimensionPanel ( ) ; dimPanel2 = new org . glotaran . core . main . common . DimensionPanel ( ) ; jLConstValue = new JLabel ( ) ; jTFconstRepVal = new JTextField ( ) ; jRBReplaceIndividualOutliers = new JRadioButton ( ) ; jRBSetRegionToConstantValue = new JRadioButton ( ) ; setMinimumSize ( new Dimension ( 540 , 130 ) ) ; setPreferredSize ( new Dimension ( 540 , 130 ) ) ; setLayout ( new GridBagLayout ( ) ) ; <START_BUG> jPReplaceIndividualOutliers . setMinimumSize ( new Dimension ( 180 , 100 ) ) ; <END_BUG> jPReplaceIndividualOutliers . setPreferredSize ( new Dimension ( 200 , 100 ) ) ; jPReplaceIndividualOutliers . setLayout ( new GridBagLayout ( ) ) ; jLabel1 . setText ( NbBundle . getMessage ( OutlierCorrectionDialog . class , "OutlierCorrectionDialog.jLabel1.text" ) ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = GridBagConstraints . VERTICAL ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; jPReplaceIndividualOutliers . add ( jLabel1 , gridBagConstraints ) ; jLabel2 . setText ( NbBundle . getMessage ( OutlierCorrectionDialog . class , "OutlierCorrectionDialog.jLabel2.text" ) ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . BOTH ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; jPReplaceIndividualOutliers . add ( jLabel2 , gridBagConstraints ) ; jSWindSize . setModel ( new SpinnerNumberModel ( Integer . valueOf ( 4 ) , Integer . valueOf ( 3 ) , null , Integer . valueOf ( 1 ) ) ) ; jSWindSize . addChangeListener ( new ChangeListener ( ) { public void stateChanged ( ChangeEvent evt ) { jSWindSizeStateChanged ( evt ) ; } } ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipadx = 31 ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; gridBagConstraints . insets = new Insets ( 0 , 10 , 1 , 0 ) ; jPReplaceIndividualOutliers . add ( jSWindSize , gridBagConstraints ) ; jTFFence . setHorizontalAlignment ( JTextField . TRAILING ) ; jTFFence . setText ( NbBundle . getMessage ( OutlierCorrectionDialog . class , "OutlierCorrectionDialog.jTFFence.text" ) ) ; jTFFence . addKeyListener ( new KeyAdapter ( ) { public void keyReleased ( KeyEvent evt ) { jTFFenceKeyReleased ( evt ) ; } } ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipadx = 50 ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; gridBagConstraints . insets = new Insets ( 1 , 10 , 0 , 0 ) ; jPReplaceIndividualOutliers . add ( jTFFence , gridBagConstraints ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . VERTICAL ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; gridBagConstraints . insets = new Insets ( 0 , 20 , 0 , 0 ) ; add ( jPReplaceIndividualOutliers , gridBagConstraints ) ; jPSetRegionToConstantValue . setMinimumSize ( new Dimension ( 310 , 100 ) ) ; jPSetRegionToConstantValue . setPreferredSize ( new Dimension ( 310 , 100 ) ) ; jPSetRegionToConstantValue . setLayout ( new GridBagLayout ( ) ) ; dimPanel1 . addPropertyChangeListener ( new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { dimPanel1PropertyChange ( evt ) ; } } ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; jPSetRegionToConstantValue . add ( dimPanel1 , gridBagConstraints ) ; dimPanel2 . addPropertyChangeListener ( new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { dimPanel2PropertyChange ( evt ) ; } } ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; jPSetRegionToConstantValue . add ( dimPanel2 , gridBagConstraints ) ; jLConstValue . setText ( NbBundle . getMessage ( OutlierCorrectionDialog . class , "OutlierCorrectionDialog.jLConstValue.text" ) ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . BOTH ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; gridBagConstraints . insets = new Insets ( 0 , 20 , 0 , 0 ) ; jPSetRegionToConstantValue . add ( jLConstValue , gridBagConstraints ) ; jTFconstRepVal . setText ( NbBundle . getMessage ( OutlierCorrectionDialog . class , "OutlierCorrectionDialog.jTFconstRepVal.text" ) ) ; jTFconstRepVal . addKeyListener ( new KeyAdapter ( ) { public void keyReleased ( KeyEvent evt ) { jTFconstRepValKeyReleased ( evt ) ; } } ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipadx = 50 ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ; jPSetRegionToConstantValue . add ( jTFconstRepVal , gridBagConstraints ) ; gridBagConstraints = new GridBagConstraints ( ) ; gridBagConstraints . gridx = 2 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = GridBagConstraints . BOTH ; gridBagConstraints . anchor = GridBagConstraints . NORTHWEST ;

Fix:
jPReplaceIndividualOutliers . setMinimumSize ( new Dimension ( 200 , 100 ) ) ;