controlPanel.add(label, c);
c.gridx = 1;
c.insets.left = 5;
c.fill = GridBagConstraints.HORIZONTAL;
this.localeComboBox = new JComboBox();
this.localeComboBox.addItem(new ComboBoxEntry(I18N
.getString("locale.system"), null));
for (final String locale: I18N.getString("locale.locales").split(","))
{
this.localeComboBox.addItem(new ComboBoxEntry(I18N
.getString("locale." + locale), locale));
}
controlPanel.add(this.localeComboBox, c);
c.insets.left = 0;
c.fill = GridBagConstraints.NONE;
// Create the theme controls
label =
new JLabel(I18N.getString("dialog.preferences.prodStats"));
c.anchor = GridBagConstraints.LINE_START;
c.gridx = 0;
c.gridy++;
controlPanel.add(label, c);
c.gridx = 1;
c.insets.left = 5;
c.fill = GridBagConstraints.HORIZONTAL;
this.prodStatsComboBox = new JComboBox();
this.prodStatsComboBox.addItem(new ComboBoxEntry(I18N
.getString("dialog.preferences.prodStats.perHour"), false));
this.prodStatsComboBox.addItem(new ComboBoxEntry(I18N
.getString("dialog.preferences.prodStats.perMinute"), true));
controlPanel.add(this.prodStatsComboBox, c);
c.insets.left = 0;
c.fill = GridBagConstraints.NONE;