import javax.swing.*; 
import java.awt.*; 

class JPanel2 extends JFrame{
	public JPanel2() {
		Container ct = getContentPane();
		ct.setLayout(new BorderLayout(5,5));
		JPanel jp1 = new JPanel();
		jp1.setLayout(new GridLayout(5,1));
		jp1.add(new JRadioButton("ÀÚ¹Ù"));
		jp1.add(new JRadioButton("C"));
		jp1.add(new JRadioButton("VisualBasic"));
		jp1.add(new JRadioButton("JSP"));
		jp1.add(new JRadioButton("PHP"));
		JPanel jp2 = new JPanel();
		jp2.setLayout(new GridLayout(5,1));
		jp2.add(new JButton("ÀÚ¹Ù"));
		jp2.add(new JButton("C"));
		jp2.add(new JButton("VisualBasic"));
		jp2.add(new JButton("JSP"));
		jp2.add(new JButton("PHP"));
		ct.add(jp1, BorderLayout.EAST);
		ct.add(jp2, BorderLayout.WEST);
		setTitle("JPanel Test2");
		setSize(300,200);
		setVisible(true);
	}
}
public class JPanelTest2 {
	public static void main(String[] args) {
		new JPanel2();
	}
}	
