在Netbeans中选择Java应用程序中的启动表单

Aim*_*dou 1 java netbeans startup

我已经创建了一个java应用程序netbeans,并且我已经构建它以实现它.jar.

现在当我运行我的.jar应用程序时它没有显示任何内容,我想在我的projet中运行一个表单作为应用程序启动时的默认表单.

在视觉工作室,我过去做如下:

In Solution Explorer, right-click the project and choose Properties.

The Project property page opens with the Application properties displayed.

Choose the form you want as the startup form from the Startup Object drop-down list.
Run Code Online (Sandbox Code Playgroud)

但我不知道如何neatbeans使用java应用程序.

我该怎么做 ?

小智 7

在netBeans中,您可以轻松地为项目选择主类.为此,请右键单击项目名称,然后选择属性.现在点击"运行"并在其中显示"主类"浏览所需的课程.如果我理解你的问题,这就是解决方案.