After the sequence of editing described above (on the Properties page) along with other UI changes, the following code is produced (without the comments) that relates to the layout for the panel.
- Code: Select all
final JPanel pnlBottom = new JPanel();
pnlBottom.setAlignmentX(Component.LEFT_ALIGNMENT);
// new layout appears here
pnlBottom.setLayout(new GridBagLayout());
// original layout appears here
final FlowLayout flowLayout_2 = new FlowLayout();
flowLayout_2.setAlignment(FlowLayout.LEFT);
flowLayout_2.setHgap(10);
pnlBottom.setLayout(flowLayout_2);
When the application is run, I see exactly what the code says, a FlowLayout, as it is applied last. However, within the development environment I see the panel laid out as GridBagLayout, which is what matches the properties page.
There appears to be a problem removing code associated with the previous layout.