JFrame displays without its components or settings (please help)

On clicking a button in an app, due to computational time required, I need to have a message popup that says 'Please Wait', which vanishes on end of needed computation. For this, I have a small working class MsgDiag that simply displays a non-modal titled JFrame showing a message string in a JLabel and an 'ok' in a JButton. This works fine when invoked directly via its own main method as a standalone, but when called from that other application(also a extended JFrame) via button click, it just brings up a blank grey untitled JFrame without the components (JLabel and JButton) or the background color! It does stay up for the required duration and vanishes on disposing its JFrame as expected but why blank w/o components or settings ?
I also find that though the JFrame component comes up blank grey, if during the computation portion in calling application, if any info/errors are popped up via direct call to a JOptionPane().showMessageDialog(JFrame(),msgString, titleString, msgType), then along with that modal popup (from JOptionPane), the grey JFrame gets correctly drawn with components and background !
Does this provide any hints ? Since MsgDiag works ok by itself I am puzzled.
I also tried putting basic code from MsgDiag (creating JFrame, adding its components, setting it visible etc) into the other app directly but same grey blank frame results. Had there been a non-modal JOptionPane I could have tried using it. I use JRE 1.4.2

Per your suggestion, I tried putting computational part in a different thread. Also tried putting the thread priority for computational thread to lowest.
In other approach, also tried putting the GUI popup (frame2) in a separate thread with highest priority while lowest priority computational thread executed. But neither approach worked. Still shows frame2 as blank w/o background or components inside while low priority computational thread finished, when frame2 gets disposed as instructed.
In 1st approach, also tried adding validate() following setSize() as some other posts have suggested but that did not change anything. Any other pointers ?

Similar Messages

Maybe you are looking for

  • Fire Wire: MBP OS X.4.11 Can't see external devices. PLEASE HELP!

    Fire Wire: MBP OS X.4.11 Can't see external devices. PLEASE HELP! My MBP will not "see" my new MB or my back-up drive-both connected via a firewire 400 (6 pin) cable. Both running Tiger X.4.11 I have used this cable to connect my MBP and a TiBook in

  • Report for Checks Issued

    Hi Can somebody tell me how can i generate a REPORTS wherein it shows our CHECKS ISSUED TO SUPPLIERS as payments? Also would show the Invoice Number, Invoice Amount, Payment Date and Maturity Date... Your help is very much appreciated... janna

  • HT4623 how can i update iOS 3.1.2 to 4.3.

    how can i update iOS 3.1.2 to 4.3.

  • Some objects refuse to scale in size when moved

    Say I have three circles on a slide. I want to animate a move of each circle to another section of the slide and I want the circles to either shrink or grow as they move. I can do this with two of the circles with no problem, but the last one will on

  • Webcam and Whiteboard not working with Adobe AIR with Adobe Flash Builder

    Hi, I am trying to build a  simple chat service using Adobe Flash Builder target for desktop AIR( my final objective is to port it to android). My adobe AIR version is 2.5.0 and below is my source code: <?xml version="1.0" encoding="utf-8"?> <s:Windo