String[] sizes = { "20", "100", "1", "0", "-1", "", "z" };
String[] units = { "%", "px", "em", "ex", "in", "cm", "mm", "pt", "pc",
"", "p", "zyx" };
GridLayout gl = new GridLayout(units.length, sizes.length);
main.addComponent(gl);
for (int i = 0; i < sizes.length; i++) {
for (int j = 0; j < units.length; j++) {
String s = sizes[i] + units[j];
gl.addComponent(new Button(s, this));
}