Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.awt.*;
  2. import javax.swing.*;
  3. import java.util.*;
  4.  
  5. public class Fenetre extends JFrame
  6. {
  7.     public Fenetre()
  8.     {
  9.         this.setLocation((int)Math.random() * ( 1920 - 0 ), (int)Math.random() * ( 1080 - 0 ));
  10.         this.setSize(500, 500);
  11.         this.setTitle("How to crash");
  12.        
  13.         this.setVisible(true);
  14.         new Fenetre();
  15.     }
  16.    
  17.     public static void main(String[] args)
  18.     {
  19.         new Fenetre();
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement