I am using group radio buttons.What i want is that when i have selected the particular radio button then i press the button(call it show button) to display the results(on a chart placed in a panel) according to the selected radio button.The problem is when i press the show button it does not display results until i click the panel though i have not written any code when i press the panel.Here is my code
private void Show1MouseClicked(java.awt.event.MouseEvent evt) {
if (jRadioButton1.isSelected()) {
Panel.removeAll();
//some code
}
Panel.setVisible(true);
Panel.add(frame1);
Panel.setSize(700, 260);
}