Main Method:
package javaproject;
public class JavaProject
{
public static void main(String[] a)
{
GUI obj = new GUI();///create + call the empty Constructor
}
}
GUI Method:
package javaproject;
import javax.swing.JFrame; ///for using JFrame
public class GUI extends JFrame
{
GUI()
{
setTitle("First GUI");///set JFrame Name
setSize(900,700);///initialize the panel size
setVisible(true); ///for visible in Computer Screen
}
}
Add your comment