Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to create new frame with java swing

import javax.swing.*; 

public class jsframe {  
  public static void main(String[] args) {
      JFrame frame = new JFrame("Insert Title"); // Create frame
      frame.setSize(800, 600); // Window resolution, can be changed

      frame.setVisible(true); // Show frame
  }  
}  
 
PREVIOUS NEXT
Tagged: #create #frame #java #swing
ADD COMMENT
Topic
Name
6+2 =