08-22-2012 08:18 PM
LabelField rightLabel = new LabelField("Text on right", LabelField.USE_ALL_WIDTH | DrawStyle.RIGHT);
Sorry coded from memory, might not be correct, but you get the idea.
The problem with this is that the LabelField is 'full width'. The other option is this:
LabelField rightLabel = new LabelField("Text on right", LabelField.RIGHT);
This will draw on the right of the Manager into which it is put. This can be a bit funny, it depends on the attributes of the Manager you add it to. But if you add this to a VFM with style attribute (USE_ALL_WIDTH, it should work.
But I have not tested any of these. I will test if you can't get this working.