Answers for "what is jframe in java"

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

how to create java jframe in eclipse

JFrame frame = new JFrame("Test Frame");
 frame.setSize(500,400);
 frame.setVisible(true);
 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Posted by: Guest on March-03-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language