Create JFRAME window using Java

public class WindowJframe() extends JFrame{ public WindowJFrame(){ setSize(600,500); //set the width and height of the Window Frame to you need setTitle("Window JFrame"); //set the Title for the Window } //main execution //call class and create reference object in main function public static void main(String[] args){ WindowJFrame windowFrame = new WindowsJFrame() //create object WindowJFrame windowFrame.setvisible(true); //internal process call to display window in screen } }
How to create a window Frame using Java code extended class JFRAME (import java.JFrame.*)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.