http://www.daniweb.com – Why does this give the error "cannot reference this before supertype constructor has been called" I thought that is the first thing I did in the constructor. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package application1; import java.awt.BorderLayout; import java.beans.PropertyVetoException; import java.io.FileNotFoundException; import java.io.IOException; import javax.swing.JInternalFrame; import javax.swing.JPanel; /** * * @author depot */ public class InternalFrame extends JInternalFrame { static final int xPosition = 30, yPosition = 30; public static int openFrameCount = 0; public String guideName = "guide"; public JInternalFrame frame; //getGuideName() + (++openFrameCount), true, true, true, true public InternalFrame() throws FileNotFoundException, IOException { super(getGuideName() + (++openFrameCount), true, true, true, true); System.out.println("internal frame openFrameCount= " + openFrameCount); setVisible(true); setSize(750, 500); setLocation(xPosition * openFrameCount, yPosition * openFrameCount); } } (General)