GUI:启动Applet未初始化

时间:2017-05-17 18:39:27

标签: java user-interface applet

我的代码很好,它编译得很好,我的老师看着它,我们无法弄清楚如何让applet正确运行。我正在制作一个GUI,它可以减轻您的体重并计算您在选定行星上的重量。当我运行它时,applet弹出,但是空白并说“启动applet未初始化”。我正在使用BlueJ。这是我的代码:

@model PSMVCAuth.Models.RegisterViewModel
@{
ViewBag.Title = "Register";
 }

<h2>@ViewBag.Title.</h2>

@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class 
= "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<h4>Create a new account.</h4>
<hr />
@Html.ValidationSummary("", new { @class = "text-danger" })
<div class="form-group">
    @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" })
    <div class="col-md-10">
        @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
    </div>
</div>
<div class="form-group">
    @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" 
   })
    <div class="col-md-10">
        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
    </div>
</div>
<div class="form-group">
    @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-
label" })
    <div class="col-md-10">
        @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-
control" })
    </div>
</div>
<div class="form-group">
    <div class="col-md-offset-2 col-md-10">
        <input type="submit" class="btn btn-default" value="Register" />
    </div>
</div>
}

@section Scripts {
@Scripts.Render("~/bundles/jqueryval")

}

0 个答案:

没有答案