title: Resource initialization during static initialization?
body: <p>I'm working on my first Swing application and now come up with a dilemma: Perform bootstrapping and resource initialization during static initialization or after starting actual execution. What do I mean... I've got <code>Application</code> singleton:</p>
  
  <pre><code>public enum Appliation{
      INSTANCE;
  
      private static void initResources(){
          //init resources
      }
  
      private Application(){
           initResources();
      }
  
      public void run(){
          //display the gui
      }
  
      //remainders omitted
  }
  </code></pre>
  
  <p>So the <code>main</code> method would look like</p>
  
  <pre><code>public static void main(String[] args){
      Application app = Application.INSTANCE;
      app.run();
  }
  </code></pre>
  
  <p>Or maybe I initialize the resources by hand after it's started and then run it. What would be the logically right way?</p>