I am trying to create a JDialog box that has a progress bar, to show the progress of an operation on the window below. If I create a modal dialog box, The box shows up correctly, but has taken processing away from the window below, which cannot complete its operation until the window is closed.
On the other hand, if I create a non-modal window, the dialog is displayed only showing the title correctly, with a blank content area. When it is done this way, the operation completes, but the progress bar cannot be seen.
The code in the actionListener for the underlying window that is supposed to display the dialog looks something like:
QSGBS.waitDialog = new GUI.WaitDialog(new java.awt.Frame(), false, "Please Wait While Searching for Bookings...");
QSGBS.monthlyPlanner.displayMonthlyBookings(cal); //operation on underlying window
Can anybody help??