how to change the text of one button by clicking a second button in java :     public class myJPanel6 extends JPanel implements ActionListene
	{  
    myJButton b1, b2;

        student st1;
        String s1;
	public myJPanel6()
	{
		
      setLayout(new GridLayout(1,1));



		student st1 = new student("Michael", "Robinson", 20);

		b1 = new myJButton(st1.getName());
        b1.addActionListener(this);
		add(b1);

                
		b2 = new myJButton(st1.WhatIsUp());
                b2.addActionListener(this);
		add(b2);
	}

   

    @Override
    public void actionPerformed(ActionEvent e) {
       
       if(e.getSource()==b1)
       {
           s1=st1.WhatIsUp();
             b2.setText(s1);
         
       }
    }`

hello all!!

i want to change the text of one button when i click on the second button, but it's do nothing, i don't know what is the problem in it.
if anyone will help me as soon as possible then i would be really thankful and will appreciate every effort.