SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Rysowanie;
  2.  
  3. import javax.swing.*;
  4. import java.awt.*;
  5. import java.util.ArrayList;
  6.  
  7. public class Okno extends JFrame {
  8.  
  9.     private WatekPro container;
  10.  
  11.     Okno() {
  12.         super();
  13.         setTitle("Modul rysowania");
  14.         setVisible(true);
  15.         setSize(1024, 768);
  16.         setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  17.         container = new WatekPro(this);
  18.     }
  19.  
  20.     public void paint(Graphics g) {
  21.         super.paint(g);
  22.         g.setColor(Color.WHITE);
  23.         ArrayList<Prostokat> listaPro = container.listaPro();
  24.         for (int i = 0; i < listaPro.size(); i++) {
  25.             Prostokat prostokat = listaPro.get(i);
  26.             prostokat.paint(g);
  27.         }
  28.  
  29.     }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top