void () { myComboBox.setRenderer(renderer); myComboBox.setPreferredSize(new Dimension(160, 28)); myComboBox.setSwingPopup(false); final GroupLayout layout = new GroupLayout(this); setLayout(layout); layout.setAutoCreateContainerGaps(true); layout.setHorizontalGroup( layout.createParallelGroup() .addGroup(layout.createSequentialGroup() .addComponent(myLabel) .addComponent(myComboBox) ) .addGroup(layout.createSequentialGroup() .addComponent(myCheckBox) .addComponent(myGlue) .addComponent(myHelpLabel) ) ); layout.setVerticalGroup( layout.createSequentialGroup() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) .addComponent(myLabel) .addComponent(myComboBox) ) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) .addComponent(myCheckBox) .addComponent(myGlue) .addComponent(myHelpLabel) ) ); }