Guest User

Untitled

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import java.awt.*;
  2. import javax.swing.*;
  3.  
  4.  
  5.  
  6. public class Kinosal extends JFrame {
  7.  
  8.    
  9.    
  10.    
  11.     Kinosal(){
  12.     setTitle("Kinosal - Reservering, Antall ledige seter: " + SETER);
  13.     setSize(1000,1000);
  14.     setLayout(new GridLayout(SETER / RADER, 0));
  15.     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  16.     for (indeks = 0; indeks < SETER; indeks++){
  17.         add(new Sete(indeks, this));
  18.     }
  19.     setVisible(true);
  20.    
  21.  
  22. }
  23.     public static int SETER=80;
  24.     public static int RADER=8;
  25.     private static int indeks=0;
  26. }
Add Comment
Please, Sign In to add comment