Assuming your different UI components are in the same class and declared as instance members, you can simply reference them anywhere within your class. So you could write:
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
if (jRadioButton1.isSelected()) {
System.out.println("radio button selected");
} else {
System.out.println("radio button NOT selected");
}
}
});