Robin, I'd like to know when your JOptionPane shows,
will your confirm booking dialog disappear?
did you do the booking
in your confirm booking dialog?
Yes, the confirm booking dialog will disappear before the JOptionPane shows.
In my MVC implementation, the Controller makes all the decisions. So the confirm booking dialog just displays a message (passed from the Controller), and allows selection of seats. The Controller will then ask the dialog whether OK or Cancel was pressed, and how many seats were selected. Then the Controller will ask the DataClient to book the flight.