返回列表 發帖
  1. import javax.swing.JFrame;
  2. public class Ch00 {

  3.         public static void main(String[] args) {
  4.                
  5.                         int a=(int)(Math.random()*701);
  6.                         int b=(int)(Math.random()*701);
  7.                         int c=(int)(Math.random()*701);
  8.                         int d=(int)(Math.random()*701);
  9.                     JFrame fm=new JFrame();
  10.                     fm.setTitle("中毒了!!!!!");
  11.                     fm.setLocation(a, b);
  12.                     fm.setSize(c, d);
  13.                     fm.setVisible(true);
  14.                     fm.setResizable(false);
  15.                     fm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  16.                
  17.         }

  18. }
複製代碼

TOP

返回列表