im having trouble with passing a value be tween jbuttons in a card layout, im having the buttion add 1 to a value that is called in the outer jframe by a text filed


// the values are called from the main
 
public class MainJFrame extends javax.swing.JFrame {
int CAL, OUT;
{


// buttons 
 
    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        CAL = CAL+1;
        CAL = OUT;
        ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_2");
    }

//text filed 
 
jLabel4 = new javax.swing.JLabel(""+OUT);

the code runs but when i click the button the value on the next jframe not updated stays at *0*