my code and save button is this. I want to pass to another frames' jTable. but i get errors. can you figure it out?
It says:
Multiple markers at this line - DefaultTableModel cannot be resolved to a type - The static field Reservations.booked should be accessed in a static way
I already set it into public static but no changes occured.
btnConfirm = new JButton("Confirm");
    btnConfirm.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            Reservations re = new Reservations();
            re.setVisible(true);
            re.textField.setText(txtEvent.getText());
            String d1 = txtEvent.getText();
            String d2 = textReg.getText();
            Object[] row = {d1, d2};
            re.DefaultTableModel des = (DefaultTableModel)re.booked.getModel();
            des.addRow(row);
        }
 
    