title: Detect design time in NetBeans
body: <p>When using the Swing graphical editor in NetBeans is it possible for a custom component to detect that it's design time? E.g.</p>
  
  <pre><code>public CustomComponent() {
      initComponents();
  
      if (!isDesignTime()) {
          someIcon = IconFactory.loadIcon("icons/SomeIcon.png");
      }
  }
  </code></pre>
  
  <p>Basically I'm after something like .net's <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.component.designmode.aspx" rel="nofollow noreferrer"><code>Component.DesignMode</code></a></p>