⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 startuperror.java

📁 cisco-2950交换机的应用程序的源代码
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   StartupError.java

package cisco.dsbu.cms.boot.internal;

import cisco.dsbu.cms.boot.internal.util.StyledLog;
import java.awt.Container;
import javax.swing.JApplet;

// Referenced classes of package cisco.dsbu.cms.boot.internal:
//            ComponentDb

class StartupError
{

    static final int NO_ERROR = 0;
    static final int PARSE_ERROR = 1;
    static final int MAJ_VER_ERROR = 2;
    static final int JRE_VER_ERROR = 3;
    private int error;
    private JApplet applet;
    private ComponentDb compDb;
    private StyledLog errorPane;

    StartupError(int i, JApplet japplet, ComponentDb componentdb)
    {
        error = i;
        applet = japplet;
        compDb = componentdb;
    }

    void show()
    {
        addErrorPane();
        if(error == 1)
            showParseError();
        else
        if(error == 2)
            showMajVerError();
        else
        if(error == 3)
            showJreVerError();
        showDetails();
    }

    private void addErrorPane()
    {
        errorPane = new StyledLog();
        applet.getContentPane().add(errorPane.getUi());
        errorPane.setBold(true);
        errorPane.append("Error\n");
        errorPane.setBold(false);
    }

    private void showParseError()
    {
        errorPane.append("None of the version files parsed correctly.");
    }

    private void showMajVerError()
    {
        errorPane.append("None of the version files were major-version-compatible.");
    }

    private void showJreVerError()
    {
        errorPane.append("None of the version files were JRE-version-compatible.");
    }

    private void showDetails()
    {
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -