JPanel t2 = new JPanel();
t2.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
t2.setBorder(LINE_BORDER);
JLabel label1 = new JLabel("Diagnostics: ");
t2.add(label1);
rad1 = new JRadioButton("On", true);
rad2 = new JRadioButton("Off");
rad1.addActionListener(this);
rad2.addActionListener(this);
t2.add(rad1);
t2.add(rad2);
rad1.setToolTipText("Perform diagnostics monitoring");
rad2.setToolTipText("Stop diagnostics monitoring");
ButtonGroup bg1 = new ButtonGroup();
bg1.add(rad1);
bg1.add(rad2);
menuBar.add(t2);
// control options (part 3)
JPanel t3 = new JPanel();
t3.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
t3.setBorder(LINE_BORDER);
JLabel label2 = new JLabel("Cache: ");
t3.add(label2);
rad3 = new JRadioButton("Enabled", true);
rad4 = new JRadioButton("Disabled");
rad3.addActionListener(this);
rad4.addActionListener(this);
t3.add(rad3);
t3.add(rad4);