import javax.swing.*;
import java.util.ArrayList;

/**
 * Created by Felix on 11.06.2015.
 */
public class UI {

    //all visible GUI display elements
    JFrame frame;

    //all invisible GUI display elements
    JPanel base;
    JPanel diceBase;
    JPanel[] individualDiceBase;

    //all background elements
    Calc calc;
    int playerCount;

    public UI(Calc calc,ArrayList<String> names){
        this.calc=calc;
        playerCount=names.size();
    }

    private void createUI(){
        //create JFrame to contain every element
        frame=new JFrame("Yahtzee");
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        base=new JPanel();
        base.setLayout(new BoxLayout(base, BoxLayout.X_AXIS));
        frame.add(base);
        diceBase=new JPanel();
        base.add(diceBase);
    }
}

@@ -645,16 +645,57 @@
 CLOSE);%0A
+        //add the base panel to the frame
 %0A       
@@ -814,58 +814,460 @@
     
-diceBase=new JPanel();%0A        base.add(diceBase);
+//add the panel for all dices%0A        diceBase=new JPanel();%0A        diceBase.setLayout(new BoxLayout(diceBase, BoxLayout.X_AXIS));%0A        base.add(diceBase);%0A        //create and add the panel for every singular dice%0A        individualDiceBase = new  JPanel%5B5%5D;%0A        for (int i=0;i%3C5;i++)%7B%0A            individualDiceBase%5Bi%5D=new JPanel();%0A            individualDiceBase%5Bi%5D.setLayout(new BoxLayout(individualDiceBase%5Bi%5D,BoxLayout.Y_AXIS));%0A        %7D
 %0A   

Version 0.0.1