displaying frame first
hi everybody,
i wrote an application using swing. it does some initial hard disk browsing
before the user can interact with it. this browsing may take some seconds,
so i wanted to show the frame first, then do the browsing, and after this is finished, update the gui accordingly.
so i wrote s.th like the following:
privatestaticvoid createAndShowGUI(){
MainFrame mainFrame =new MainFrame();
mainFrame.pack();
mainFrame.setVisible(true);
// browsing stuff
..........
}
publicstaticvoid main(String[] args){
javax.swing.SwingUtilities.invokeLater(new Runnable(){
publicvoid run(){
createAndShowGUI();
}
});
}
but the result is that the frame with its frame title is shown, but none of the
components within the frame... oO ?!?
how do i do this right?
thanks in advance for any comments!
well the rest of course is shown as well, but after the stuff is done. so it looks quite nasty for a few seconds...

