Answers for "is jframe a basic frame of swing"

8

java create jframe

import javax.swing.JFrame;

public class example {
  public static void main(String[] args){
    JFrame frame = new JFrame();
    frame.setSize(100,100);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOES);
    frame.setTitle("Example Frame");
    frame.setVisible(true);
  }
}
Posted by: Guest on April-17-2020
0

make a jframe

There is a typo CLOSE not CLOES :)
Posted by: Guest on January-02-2021

Code answers related to "is jframe a basic frame of swing"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language