use of delta.games.lotro.lore.reputation.ReputationDeed in project lotro-companion by dmorcellet.
the class ReputationDeedsDisplayController method buildPanel.
private JPanel buildPanel() {
JPanel panel = GuiFactory.buildPanel(new GridBagLayout());
FactionsRegistry registry = FactionsRegistry.getInstance();
int y = 0;
List<ReputationDeed> deeds = registry.getReputationDeeds();
for (ReputationDeed deed : deeds) {
String deedName = deed.getName();
JLabel label = GuiFactory.buildLabel(deedName + ":");
label.setToolTipText("Status for the '" + deedName + "' deed");
GridBagConstraints c = new GridBagConstraints(0, y, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0);
panel.add(label, c);
c.gridx++;
c.weightx = 1.0;
c.fill = GridBagConstraints.HORIZONTAL;
JLabel countLabel = GuiFactory.buildLabel("NN / NN");
panel.add(countLabel, c);
_countLabels.add(countLabel);
y++;
}
return panel;
}
Aggregations