I want to have label at the specified position, but it always is centernd. (The rest works fine though)
public class ItemInfo extends Container {
private Label label;
public ItemInfo(int amount,BaseShipPart item,int sizex,int sizey){
this.setSize(sizex,sizey);
int px = sizex/10;
int py = sizey/10;
//Create the label
label = FengGUI.createWidget(Label.class);
this.addWidget(label);
label.setText(item.GetType().toString() + ": " + item.GetItemName());
FengguiUtils.setFontToDefaultStyle(label.getAppearance(),ImageFont.getDefaultFont(),item.GetColortype());
label.setSize(px*8,py);
label.setPosition(new Point(px,py));
this.getAppearance().add(new PlainBorder(Color.WHITE_HALF_TRANSPARENT));
this.layout();
}
}