Here's a little sketch for displaying letters from a key input (only a,b,c,e,f,p,s,x, are working for now) in a grid of cells:
Cell[][][] grille; //tableau d'objets-cellules
int nb=11;
int cols=5;
int rows=5;
int larg=854;
int haut=480;
/*patterns of letters*/boolean[] motif={true,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,true};