tabControlButtonGroup.add(tabRightRadioButton);
tabControlButtonGroup.add(tabTopRadioButton);
tabControlButtonGroup.add(tabBottomRadioButton);
int y = -1;
tabControlPanel.setBorder(new EmptyBorder(4, 4, 4, 4));
tabControlPanel.add(tabControlLabel,
new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabControlPanel.add(tabTopRadioButton,
new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabControlPanel.add(tabLeftRadioButton,
new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabControlPanel.add(tabBottomRadioButton,
new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabControlPanel.add(tabRightRadioButton,
new GridBagConstraints(0, ++y, 1, 1, 1.0, 0.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabControlPanel.add(Box.createVerticalGlue(),
new GridBagConstraints(0, ++y, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTHWEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 4, 2, 4),
0, 0));
tabbedPane.addTab("JList/JSplitPane", listSplitPanePanel);
tabbedPane.addTab("JButton", buttonPanel);
buttonPanel.setDefaultButton(getRootPane());
tabbedPane.addTab("JToggleButton", toggleButtonPanel);
tabbedPane.addTab("JCheckBox", checkBoxPanel);
tabbedPane.addTab("JRadioButton", radioButtonPanel);
tabbedPane.addTab("JProgressBar", progressBarPanel);
tabbedPane.addTab("JSlider", sliderPanel);
tabbedPane.addTab("JTextField", textFieldPanel);
tabbedPane.addTab("JSpinner", spinnerPanel);
tabbedPane.addTab("JComboBox", comboBoxPanel);
tabbedPane.addTab("JTree", treePanel);
tabbedPane.addTab("JOptionPane", optionPanePanel);
tabbedPane.addTab("JFileChooser", fileChooserPanel);
tabbedPane.addTab("JColorChooser", colorChooserPanel);
tabbedPane.setBorder(new EmptyBorder(4, 4, 4, 4));
getContentPane().add(tabbedPane, BorderLayout.CENTER);
getContentPane().add(tabControlPanel, BorderLayout.EAST);
pack();
}