Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import javax.media.opengl.*;
- import javax.media.opengl.glu.*;
- public class Vindu extends JFrame {
- public Vindu(String tittel){
- setTitle(tittel);
- setDefaultCloseOperation(EXIT_ON_CLOSE);
- Tegning2 tegningen = new Tegning2(800,800);
- add(tegningen);
- pack();
- }
- }
- class Test{
- public static void main(String[] args) {
- Vindu etVindu = new Vindu("Vinduet");
- etVindu.setVisible(true);
- }
- }
Add Comment
Please, Sign In to add comment