title: Assign object instance to static variable
body: <p>following issue. I have a static method with static members and one should contain a JTable instance of my own table class:</p>
  
  <blockquote>
    <p><code>public class MyTable extends JTable</code></p>
  </blockquote>
  
  <p>but this </p>
  
  <blockquote>
    <p><code>private static MyTable configTable = new MyTable();</code></p>
  </blockquote>
  
  <p>will lead to <code>non-static variable this cannot be referenced from a static context</code>.</p>
  
  <p>But why?
  If I would write</p>
  
  <blockquote>
    <p><code>private static JTable configTable = new JTable();</code></p>
  </blockquote>
  
  <p>it would compile without any problems. Where's the difference?
  Anyway to achieve it anyway except changing all my Classes to non-static or switching MyTable to a static method :(?</p>
  
  <p>Cheers</p>