    001    package net.minecraft.client;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.awt.BorderLayout;
    006    import java.awt.Canvas;
    007    import net.minecraft.crash.CrashReport;
    008
    009    @SideOnly(Side.CLIENT)
    010    public class MinecraftAppletImpl extends Minecraft
    011    {
    012        /** Reference to the main frame, in this case, the applet window itself. */
    013        final MinecraftApplet mainFrame;
    014
    015        public MinecraftAppletImpl(MinecraftApplet par1MinecraftApplet, Canvas par2Canvas, MinecraftApplet par3MinecraftApplet, int par4, int par5, boolean par6)
    016        {
    017            super(par2Canvas, par3MinecraftApplet, par4, par5, par6);
    018            this.mainFrame = par1MinecraftApplet;
    019        }
    020
    021        public void displayCrashReportInternal(CrashReport par1CrashReport)
    022        {
    023            this.mainFrame.removeAll();
    024            this.mainFrame.setLayout(new BorderLayout());
    025            this.mainFrame.add(new PanelCrashReport(par1CrashReport), "Center");
    026            this.mainFrame.validate();
    027        }
    028    }