Please help me how to display the value of the first JTextfield on the first label, and the second JTextField on next label. on the next page

Java Code:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class PassData extends JFrame
{
    JTextField textName;
    JTextField textSurname;
    
    PassData(){
        JLabel lblName=new JLabel("Name: ");
        JLabel lblSurname=new JLabel("Surname: ");
        textName=new JTextField(20);
        textSurname=new JTextField(20);
        JButton b=new JButton("Send");
        setLayout(null);
        lblName.setBounds(10,10,100,20);
        lblSurname.setBounds(10,40,100,20);
        textName.setBounds(120,10,150,20);
        textSurname.setBounds(120,40,150,20);
        b.setBounds(120,65,80,20);
        add(lblName);
        add(lblSurname);
        add(textName);
        add(textSurname);
        add(b);
        setVisible(true);
        setSize(300,300);
          b.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
            String value=textName.getText();
            String value1=textSurname.getText();
            NextPage page=new NextPage(value+value1);
            page.setVisible(true);
            }
        });
    }
        public static void main(String[] args) 
    {
        new PassData();
    }
}
Java Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class NextPage extends JFrame
{
  NextPage(String st)
   {
     setLayout(null);
     setDefaultCloseOperation(javax.swing. WindowConstants.DISPOSE_ON_CLOSE);
     setTitle("Welcome");
     JLabel lab1=new JLabel("Name  : " +st);
     JLabel lab2= new JLabel("Surname : "+st);
     lab1.setBounds(10,10,500,20);
     lab2.setBounds(10,40,500,20);
     add(lab1);
     add(lab2);
     setSize(300, 300);
      }
 }