Buggy code:
jLabel1 . setText ( "ShoppingPanel" ) ; jLabel1 . addMouseListener ( new MouseAdapter ( ) { public void mouseClicked ( MouseEvent evt ) { jLabel1MouseClicked ( evt ) ; } } ) ; jButton1 . setText ( "My<seq2seq4repair_space>Account" ) ; jButton1 . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent evt ) { jButton1ActionPerformed ( evt ) ; } } ) ; jTabbedPane1 . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; jTabbedPane1 . setPreferredSize ( new Dimension ( 0 , 0 ) ) ; browsePanel1 . setPreferredSize ( new Dimension ( 800 , 400 ) ) ; jTabbedPane1 . addTab ( "Browse" , browsePanel1 ) ; jTabbedPane1 . addTab ( "Grocery<seq2seq4repair_space>Bag" , groceryBagPanel1 ) ; jTabbedPane1 . addTab ( "History" , historyPanel1 ) ; categoryPanel2 . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; shoppingCartPanel2 . setMinimumSize ( new Dimension ( 100 , 172 ) ) ; searchField . setText ( "Produkt<seq2seq4repair_space>eller<seq2seq4repair_space>kategori" ) ; searchField . addFocusListener ( new FocusAdapter ( ) { public void focusGained ( FocusEvent evt ) { searchFieldFocusGained ( evt ) ; } } ) ; searchField . addKeyListener ( new KeyAdapter ( ) { public void keyPressed ( KeyEvent evt ) { searchFieldKeyPressed ( evt ) ; } } ) ; searchButton . setText ( "Sök" ) ; searchButton . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent evt ) { searchButtonActionPerformed ( evt ) ; } } ) ; GroupLayout layout = new GroupLayout ( this ) ; this . setLayout ( layout ) ; <START_BUG> layout . setHorizontalGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addContainerGap ( ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( categoryPanel2 , GroupLayout . PREFERRED_SIZE , 300 , GroupLayout . PREFERRED_SIZE ) . addPreferredGap ( LayoutStyle . ComponentPlacement . UNRELATED ) ) . addGroup ( GroupLayout . Alignment . TRAILING , layout . createSequentialGroup ( ) . addComponent ( filler2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addGap ( 132 , 132 , 132 ) ) ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( jLabel1 ) . addGap ( 240 , 240 , 240 ) ) ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( searchField , GroupLayout . PREFERRED_SIZE , 178 , GroupLayout . PREFERRED_SIZE ) . addGap ( 18 , 18 , 18 ) . addComponent ( searchButton ) ) . addComponent ( jTabbedPane1 , GroupLayout . DEFAULT_SIZE , 872 , Short . MAX_VALUE ) ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addPreferredGap ( LayoutStyle . ComponentPlacement . RELATED , 309 , Short . MAX_VALUE ) . addComponent ( jButton1 ) . addContainerGap ( ) ) . addGroup ( layout . createSequentialGroup ( ) . addGap ( 6 , 6 , 6 ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addComponent ( filler1 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addComponent ( shoppingCartPanel2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) ) . addContainerGap ( GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ) ) ; <END_BUG> layout . setVerticalGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( GroupLayout . Alignment . TRAILING , layout . createSequentialGroup ( ) . addGap ( 18 , 18 , 18 ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . BASELINE ) . addComponent ( jLabel1 ) . addComponent ( jButton1 ) . addComponent ( searchField , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addComponent ( searchButton ) ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addGap ( 22 , 22 , 22 ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addComponent ( jTabbedPane1 , GroupLayout . Alignment . TRAILING , GroupLayout . DEFAULT_SIZE , 832 , Short . MAX_VALUE ) . addGroup ( GroupLayout . Alignment . TRAILING , layout . createSequentialGroup ( ) . addComponent ( filler2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addPreferredGap ( LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( categoryPanel2 , GroupLayout . DEFAULT_SIZE , GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) . addContainerGap ( ) ) . addGroup ( layout . createSequentialGroup ( ) . addGap ( 52 , 52 , 52 ) . addComponent ( shoppingCartPanel2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addPreferredGap ( LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( filler1 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addContainerGap ( GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ) ) ; } private void jLabel1MouseClicked ( MouseEvent evt ) { } private void jButton1ActionPerformed ( ActionEvent evt ) { } private void searchButtonActionPerformed ( ActionEvent evt ) { } private void searchFieldFocusGained ( FocusEvent evt ) { } private void searchFieldKeyPressed ( KeyEvent evt ) { } private BrowsePanel browsePanel1 ; private CategoryPanel categoryPanel2 ; private Box . Filler filler1 ; private Box . Filler filler2 ; private GroceryBagPanel groceryBagPanel1 ; private HistoryPanel historyPanel1 ; private JButton jButton1 ; private JLabel jLabel1 ; private JTabbedPane jTabbedPane1 ; private JButton searchButton ;

Fix:
layout . setHorizontalGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addContainerGap ( ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( categoryPanel2 , GroupLayout . PREFERRED_SIZE , 300 , GroupLayout . PREFERRED_SIZE ) . addPreferredGap ( LayoutStyle . ComponentPlacement . UNRELATED ) ) . addGroup ( GroupLayout . Alignment . TRAILING , layout . createSequentialGroup ( ) . addComponent ( filler2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addGap ( 132 , 132 , 132 ) ) ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( jLabel1 ) . addGap ( 240 , 240 , 240 ) ) ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( searchField , GroupLayout . PREFERRED_SIZE , 178 , GroupLayout . PREFERRED_SIZE ) . addGap ( 18 , 18 , 18 ) . addComponent ( searchButton ) ) . addComponent ( jTabbedPane1 , GroupLayout . DEFAULT_SIZE , 872 , Short . MAX_VALUE ) ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addPreferredGap ( LayoutStyle . ComponentPlacement . RELATED , GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) . addComponent ( jButton1 ) . addContainerGap ( ) ) . addGroup ( layout . createSequentialGroup ( ) . addGap ( 6 , 6 , 6 ) . addGroup ( layout . createParallelGroup ( GroupLayout . Alignment . LEADING ) . addComponent ( filler1 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) . addComponent ( shoppingCartPanel2 , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) ) . addContainerGap ( GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ) ) ;