Java class is despite new ...; not called up : <p>I have a problem with call up a class. I'm programming in Eclipse and I have another Java Program, which works very well, but I can't see any difference. Here is the code of the Main class:</p>

<pre><code>public class Main {
        public static void main(String[] args) {
                new Var();
                new GUI();
                new Label();
                new ActionHandler();
        }
}
</code></pre>

<p>If I place a <code>System.out.println("Test");</code>in the Label class, I don't get the output.
Here is the Label class:</p>

<pre><code>import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JLabel;

public class Label extends JLabel {
        private static final long serialVersionUID = 1L;
        protected void paintComponent(Graphics g) {
                super.paintComponent(g);
                Graphics2D g2d = (Graphics2D) g;
                g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                g.drawImage(Var.ibackground, 0, 0, 1920, 1080, null);
        }
}
</code></pre>

<p>Thanks in advance,
Lupus</p>
