I would like to add components (JButton
and JSpinner
) to a JPanel
which was created using Netbeans GUI builder. This panel uses GroupLayout
, and I can't seem to use add()
to add a component. Is there any way to either add something to a panel which has a GroupLayout
, or change this panel to a FlowLayout
?
There is an option if you right-click the JPanel
to change it to a FlowLayout
(Set Layout). This fixed all the problems I was having.