📜  创建 jframe java 代码示例

📅  最后修改于: 2022-03-11 14:52:23.300000             🧑  作者: Mango

代码示例1
public JFrame frame = new JFrame();//creating jframe

Class main(){
public static void main(String[] args){
  frame.setSize(200,200); //setting size
  frame.setVisable(true); //sets visability 
  frame.setDefaultCloseOperation.(JFrame.EXIT_ON_CLOSE); //allow jframe to close when clicked

}
  }