ob1 is a JButton, and when clicked on a dialog will pop up. Once it pops up, the pop-up window will say "Hello There" and an "Hi" button underneath. When "Hi" is clicked on, I would like it to exit the GUI all together. But here it seem like I've done everything correctly, but I don't understand why it's not working. Please help.

Thank you

```
ob1.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent ae){
            JDialog jd = new JDialog(); //Pop-Up window
            jd.setLocationRelativeTo(null);
            jd.setSize(350, 150);
            jd.setModal(true);
            JPanel jp = new JPanel();
            jp.setLayout(new BoxLayout(jp, BoxLayout.Y_AXIS));
            JLabel jl = new JLabel("Hello there");
            JButton jb3 = new JButton("Hi");
            jp.add(jl);
            jp.add(jb3);
            jd.add(jp);
            jd.setVisible(true);

            //acition listener for the Hi button and when clicked on supposed to exit the GUI
            jb3.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent ae){
                    System.exit(0);
                }
            });
        }
    });

```