    001    package net.minecraft.src;
    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.client.Minecraft;
    008    import net.minecraft.client.MinecraftApplet;
    009
    010    @SideOnly(Side.CLIENT)
    011    public class MinecraftAppletImpl extends Minecraft
    012    {
    013        /** Reference to the main frame, in this case, the applet window itself. */
    014        final MinecraftApplet mainFrame;
    015
    016        public MinecraftAppletImpl(MinecraftApplet par1MinecraftApplet, Canvas par2Canvas, MinecraftApplet par3MinecraftApplet, int par4, int par5, boolean par6)
    017        {
    018            super(par2Canvas, par3MinecraftApplet, par4, par5, par6);
    019            this.mainFrame = par1MinecraftApplet;
    020        }
    021
    022        public void displayCrashReportInternal(CrashReport par1CrashReport)
    023        {
    024            this.mainFrame.removeAll();
    025            this.mainFrame.setLayout(new BorderLayout());
    026            this.mainFrame.add(new PanelCrashReport(par1CrashReport), "Center");
    027            this.mainFrame.validate();
    028        }
    029    }