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.
}
我认为这是一个简单的问题。我有四个单选按钮和单选按钮下方的常规提交按钮。当用户单击提交按钮时,我试图启动一个 Jframe(此时选择了一个单选按钮) Jframe 根据所选单选按钮启动。您如何将其放入代码中?有任何想法吗?