Container cont = getContentPane();
cont.setLayout(new GridBagLayout());
Insets i = new Insets(3,3,3,3);
GridBagConstraints c = new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.NORTHWEST,GridBagConstraints.NONE,i,0,0);
JComboBox cb1 = new JComboBox();
JComboBox cb2 = new JComboBox();
JRadioButton rb1 = new JRadioButton("RadioButton1");
JRadioButton rb2 = new JRadioButton("RadioButton2");
JRadioButton rb3 = new JRadioButton("RadioButton3");
JRadioButton rb4= new JRadioButton("RadioButton4");
JTextArea area = new JTextArea();
JScrollPane scroller = new JScrollPane();
scroller.getViewport().add(area);
c.anchor = GridBagConstraints.NORTHEAST;
c.weightx = 0.5;
cont.add(cb1, c);
c.gridx++;
c.anchor = GridBagConstraints.NORTHWEST;
cont.add(cb2, c);
c.gridx=0;
c.gridy++;
c.anchor = GridBagConstraints.NORTHEAST;
cont.add(new JLabel("Ausgabe"), c);
c.gridy++;
cont.add(rb1, c);
c.gridy++;
cont.add(rb2, c);
c.gridy++;
cont.add(rb3, c);
c.gridy++;
cont.add(rb4, c);
c.gridy++;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.weighty = 1.0;
c.weightx = 1.0;
c.anchor = GridBagConstraints.NORTHWEST;
cont.add(scroller, c);
cont.add(cb1, c);
c.gridx++;
cont.add(cb2, c);
// 2. Zeile
c.fill = GridBagConstraints.NONE;
c.weightx = 0;
c.gridx=0;
c.gridy++;
// eventuell JLabel oben instanzieren und horizonalalignment auf right
// setzen
cont.add(new JLabel("Ausgabe"), c);
c.gridy++;
cont.add(rb1, c);
c.gridy++;
cont.add(rb2, c);
c.gridy++;
cont.add(rb3, c);
c.gridy++;
cont.add(rb4, c);
c.gridy++;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.weighty = 1.0;
c.weightx = 1.0;
c.anchor = GridBagConstraints.NORTHWEST;
cont.add(scroller, c);
Container cont = getContentPane();
cont.setLayout(new GridBagLayout());
Insets i = new Insets(3,3,3,3);
GridBagConstraints c = new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.NORTHWEST,GridBagConstraints.NONE,i,0,0);
JComboBox cb1 = new JComboBox();
JComboBox cb2 = new JComboBox();
JRadioButton rb1 = new JRadioButton("RadioButton1");
JRadioButton rb2 = new JRadioButton("RadioButton2");
JRadioButton rb3 = new JRadioButton("RadioButton3");
JRadioButton rb4= new JRadioButton("RadioButton4");
JTextArea area = new JTextArea();
JScrollPane scroller = new JScrollPane();
scroller.getViewport().add(area);
Dimension dim = new Dimension(120, 20);
cb1.setMinimumSize(dim);
cb1.setPreferredSize(dim);
cb1.setMaximumSize(dim);
cb2.setMinimumSize(dim);
cb2.setPreferredSize(dim);
cb2.setMaximumSize(dim);
JPanel panel = new JPanel();
panel.setLayout(new GridBagLayout());
panel.add(cb1, c);
c.gridx++;
panel.add(cb2, c);
c.gridx=0;
c.gridy++;
panel.add(new JLabel("Ausgabe"), c);
c.gridy++;
panel.add(rb1, c);
c.gridy++;
panel.add(rb2, c);
c.gridy++;
panel.add(rb3, c);
c.gridy++;
panel.add(rb4, c);
c = new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.NORTHWEST,GridBagConstraints.NONE,i,0,0);
c.anchor = GridBagConstraints.NORTH;
cont.add(panel);
c.gridy++;
c.fill = GridBagConstraints.BOTH;
c.weighty = 1.0;
c.weightx = 1.0;
c.anchor = GridBagConstraints.NORTHWEST;
cont.add(scroller, c);