Netbeans | Computer Science homework help

  

Netbeans 

Design, implement, test, and debug a GUI-based version of a “Hello, World!” program.
Create a JFrame that includes a JLabel that reads “Hello, World!” Use a layout manager of your choice.
Include an Exit button to close the program.
Submit the .java source file.

 

Steps to run:

Open Netbeans and create a new project and then create a new java file in default package(src)
The name of the java file should be SayHello.java (Mind the case of letters)

Delete the contents if any and paste the below code. Save it. Right click on SayHello.java and click on run