tackSourcePanel.java
Created with JBuilder
package mastermind;

import javax.swing.*;
import java.awt.*;

/**
 * TackSourcePanel -
 * Stellt je nach Anzahl Farben im Model mehr oder weniger TackSource Elemente dar.
 *
 * Mind Blowing Master Mind ein klein Projekt des Informatik Unterrichts Programmieren II
 * Authors Pascal Naef; Fabian Heusser
 * Teacher: H. J. Diethlem
 * School: hta.fhz.ch, Horw;
 * Project Homepage: http://www.w3p.ch/mastermind/
 *
 * supported features:
 * OYOAHA Look and feel;
 * Transparen Pictures;
 * Drag & Drop;
 * Copy & Paste;
 *
 *
 * LEGAL NOTICE
 * THIS PROJECT AND ITS FILES ARE COPYRIGHTED BY THE AUTHORS
 * THIS PROJECT CAN BE COPIED, MODIFIED AND DISTRIBUTED
 * UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENCE
 * WITH THE RESTRICTION OF SENDING US A MAIL WITH THE MODIFIED
 * SOURCODE IF THE PROJECT IS MODIEFIED.
 *
 * if you like this progi feel free to send us something (beer, chips, playmates, houses....).
 *
 *
 * @author Fabian Heusser
 * @author Pascal Naef
 * @version 1.0 $Date: 2001/12/05 15:37:26 $ $Revision: 1.2 $
 * @(#) MasterMindView.java
 */

public class tackSourcePanel extends JPanel
{
  MasterMindModel playGround;

  /**
   * Konstruirt das ganze.
   * @pram _playGround, MasterMindModel model aus dem die Informationen Geholt werden.
   */
  public tackSourcePanel(MasterMindModel _playGround)
  {
    playGround = _playGround;

    this.setLayout(new GridLayout(playGround.getColors(),1));
    for (int i = 1; i<=playGround.getColors(); i++)
    {
      this.add(new TackSource(new Tack(i)));
    }
  }
}

tackSourcePanel.java
Created with JBuilder