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);
        //add the base panel to the frame
        base=new JPanel();
        base.setLayout(new BoxLayout(base, BoxLayout.X_AXIS));
        frame.add(base);
        //add the panel for all dices
        diceBase=new JPanel();
        diceBase.setLayout(new BoxLayout(diceBase, BoxLayout.X_AXIS));
        base.add(diceBase);
        //create and add the panel for every singular dice
        individualDiceBase = new  JPanel[5];
        for (int i=0;i<5;i++){
            individualDiceBase[i]=new JPanel();
            individualDiceBase[i].setLayout(new BoxLayout(individualDiceBase[i],BoxLayout.Y_AXIS));
        }
    }
}

@@ -1245,32 +1245,77 @@
 ayout.Y_AXIS));%0A
+            base.add(individualDiceBase%5Bi%5D);%0A
         %7D%0A    %7D%0A

Version 0.0.1