Anonymous
public text v1 · immutable c.gridx = 0;
c.gridy = 0;
c.ipadx = 4;
for(Map.Entry<String, JTextComponent> me : text.entrySet()) {
p.add(new JLabel(TextUtils.properCase(me.getKey())), c);
c.gridx++;
p.add(me.getValue());
c.gridx = 0;
c.gridy++;
}
//With debug:
x: 0 & y:0 & text: time
x: 1 & y:0 & text:
x: 0 & y:1 & text: valid
x: 1 & y:1 & text: true
//Image at: http://img255.imageshack.us/img255/552/screeniepu9.jpg