package pkg411project;
import javax.swing.ButtonGroup;
public class CrudMain extends javax.swing.JInternalFrame {
public CrudMain() {
initComponents();
}
@SuppressWarnings("unchecked")
private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
BankRecordFrame bdFrame = new BankRecordFrame();
bdFrame.setVisible(true);
this.jDesktopPane2.add(bdFrame);
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JDesktopPane jDesktopPane2;
private javax.swing.JLabel jLabel1;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JRadioButton jRadioButton3;
private javax.swing.JRadioButton jRadioButton4;
private javax.swing.JRadioButton jRadioButton5;
// End of variables declaration
//ButtonGroup group = new ButtonGroup();
//group.
}
This is a simple question I think. I have four radiobuttons and a regular submit button below the radiobuttons. I am trying to lauch a Jframe when the user clicks on the submit button (one of the radioButton is selected at this point) The Jframe is launched depending on the radiobutton selected. How do you put that into code ? any ideas?