Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages
Started by tom
Tue, 19 Jul 2005 23:12
flash message failed to show
Author: tom
Date: Tue, 19 Jul 2005 23:12
Date: Tue, 19 Jul 2005 23:12
37 lines
1824 bytes
1824 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads