public void java(){
JPanel checkPanel = new JPanel();
GridLayout checks = new GridLayout(0,1);
checkPanel.setLayout(checks);
JPanel buttonPanel = new JPanel();
GridLayout buttons = new GridLayout(0,2);
buttonPanel.setLayout(buttons);
checkPanel.add(new JLabel("JAVA:"));
checkPanel.add(new JCheckBox("Issue:"));
checkPanel.add(new JCheckBox("Issue: "));
checkPanel.add(new JCheckBox("Resolution:"));
checkPanel.add(new JCheckBox("Resolution: "));
checkPanel.add(new JCheckBox("Resolution: "));
checkPanel.add(new JLabel("INCORRECT"));
checkPanel.add( new JCheckBox("Issue: "));
checkPanel.add( new JCheckBox("Issue: "));
checkPanel.add( new JCheckBox("Resolution:"));
checkPanel.add( new JCheckBox("Resolution:"));
checkPanel.add( new JCheckBox("Resolution: "));
buttonPanel.add( new JButton("Email "));
buttonPanel.add(new JButton("Email"));
arrayInfo.add(checkPanel);
arrayInfo.add(buttonPanel);
}
Hello, I want to have the jcheckboxes take up most of the screen and the radio buttons just to take up the very bottom line in a (0, 2) format. My code pretty much divides the screen in two equal size sections, top half for checkboxes and bottom half for buttons. How do i make the buttons just take up one line and not half the screen???
thank you