Have you tried component.getParent()
method to get the parent.
public void actionPerformed(ActionEvent e) {
Object src=e.getSource();
if(src instanceof JRadioButton){
Container parent=((JRadioButton)src).getParent();
if(parent instanceof JPanel){
System.out.println(parent.getName());
}
}
}