Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.util.*;
  2. import javax.media.opengl.*;
  3. import javax.media.opengl.glu.*;
  4.  
  5. public class Vindu extends JFrame {
  6.     public Vindu(String tittel){
  7.         setTitle(tittel);
  8.         setDefaultCloseOperation(EXIT_ON_CLOSE);
  9.         Tegning2 tegningen = new Tegning2(800,800);
  10.         add(tegningen);
  11.         pack();
  12.     }
  13.    
  14. }
  15. class Test{
  16.     public static void main(String[] args) {
  17.         Vindu etVindu = new Vindu("Vinduet");
  18.         etVindu.setVisible(true);
  19.     }
  20. }
Add Comment
Please, Sign In to add comment