flash message failed to show


2005-07-20 07:12:43 AM
jbuilder1
Hi,
I can't figure it out why the flash message did not show. It shows the
windows frame but not the flash message.
Here's my code.
public void jMenuDataDisplay_actionPerformed(ActionEvent e) {
//show loading message"
JWindow jwin = new JWindow();
jwin.getContentPane().add(new JLabel("Loading Data
Display...",SwingConstants.CENTER));
jwin.setBackground(Color.white);
jwin.setBounds(400,400,200,100);
jwin.setVisible(true);
try {
Thread.sleep(600);
dataDisplay();
} catch (InterruptedException ex) {
ex.printStackTrace();
}
jwin.setVisible(false);
jwin.dispose();
//Call dataDisplay subroutine.
System.out.println("Calling dataDisplay");
// dataDisplay();
}
Thanks
Tom