x = getOX() + 10 + 21;
y += resourceDispTo.getHeight() + 9;
fields = new HashMap<Resource, EditField>();
Resource[] resources = Resource.values();
for (Resource r : resources) {
EditField ef = new NumberField();
ef.setTheme("editfield");
ef.setPosition(x, y += 25);
ef.setSize(120, 15);
twlRootPane.add(ef);
fields.put(r, ef);
}
x = Settings.WIDTH / 2 - 5 - TextButton.DEFAULT_WIDTH;