title: Visible JProgressBar while initializing main GUI
body: <p>I'm building a fairly complicated GUI for a project I'm working on.  Importantly, it contains (among other things) a <code>JTabbedPane</code> with 12+ panes of complex GUI components.</p>
  
  <p>What I'm trying to do is display a <code>JProgressBar</code> when I'm instantiating these panes (creating and configuring; doing everything short of actually displaying).  Actually, I'm hoping for an end result similar to the Eclipse splash screen:</p>
  
  <p><img src="https://i.stack.imgur.com/RpiUe.jpg" alt="enter image description here"></p>
  
  <p>Here is (updated to include SplashScreen) pseudo-code for what I'm trying to do:</p>
  
  <pre><code>ProgramManager:
  private setupGUI() {
      mainGUI = new MainGUI(); // only instantiates internal JFrame field
      mainGUI.setup();
  }
  
  MainGUI:
  public void setup() {
      //create and configure progress bar
      final SplashScreen ss = SplashScreen.getSplashScreen();
      JProgressBar jpb = new JProgressBar(){
          Graphics g = ss.createGraphics();
          @Override
          public void paint(Graphics pG) {
              // TODO Auto-generated method stub
              super.paint(g);
          }
      };
      jpb.setValue(0);        
      setup1stTab();
      //update Progress
      setup2ndTab();
      //update progress
      etc....
      ss.close();
  }
  </code></pre>
  
  <p>Please let me know if this is just not possible, or if I'm simply going about it wrong. I've looked around and seen some mention of Threading/<code>SwingWorker</code>, but after messing around with that and the Observer/Observable stuff (admittedly only a little), I still can't figure it out.</p>