private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
CardLayout card = (CardLayout)main_panel.getLayout();
card.show(main_panel, "jPanel1");
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
CardLayout card = (CardLayout)main_panel.getLayout();
card.show(main_panel, "jPanel2");
}
hey guys I needed to use CardLayout to work with one of my existing project, but it never work! so I tried making a new form instead following the tutorial from How to use CardLayout with Netbeans GUI Builder but I still can't get it to work... After clicking those buttons nothing will happen. Any help please?