Adding a new JFrame to the same code, but a different quiz question

I made a quiz program that's connected to my mySQL DB through pMA. It works, it's functional and updates the tables in the DB that I need it to update. Here's the deal tho. The GUI I made in swing displays only one question, which happens to be the only question I made so far. How would I make it so that a button on the GUI hops to the question number two,in a new, clear frame, which is basically a copy paste of question number 1, but with just different question-answers? I'm really new in GUI building, and I'm using NetBeans GUI builder. Thanks! My code for this single question, if anyone needs it for some reason.

https://pastebin.com/rE3WTPDq

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    try{
            String submitQuery="INSERT INTO uneseniodgovori(uo) VALUES (?)";
            con=DriverManager.getConnection("jdbc:mysql://localhost/javaquiz", "root", "");
            pst=con.prepareStatement(submitQuery);
            pst.setString(1, value);
            pst.executeUpdate();
                    JOptionPane.showMessageDialog(this,"Vas odgovor je postavljen uspjesno!");
                    String extractQuery="select uneseniodgovori.uo, odgovori.odg from odgovori inner join(select uo from uneseniodgovori order by id desc limit 1) as uneseniodgovori on uneseniodgovori.uo=odgovori.odg";
                    pst=con.prepareStatement(extractQuery);
                    rs=pst.executeQuery();
                    if(rs.next()){
                        String valueQuery="INSERT INTO uporedi(vrijednost) VALUES(?)";
                        pst=con.prepareStatement(valueQuery);
                        pst.setString(1, "Tacno!");
                        pst.executeUpdate();
                    }
                    else{
                        String valueQuery="INSERT INTO uporedi(vrijednost) VALUES (?)";
                        pst=con.prepareStatement(valueQuery);
                        pst.setString(1, "Netacno!");
                        pst.executeUpdate();
                    }
}                                        
    catch(SQLException | HeadlessException ex){
        JOptionPane.showMessageDialog(this, ex.getMessage());
    }

}