07-25-2009 02:36 AM
Hi to all,
I have to keep two label fields in HorizontalFieldManager, one Left allign and the other Right allign and then add the HorizontalFieldManager to VerticalFieldManager. I have used particular code but it is not giving me proper out:
HorizontalFieldManager hfm_date = new HorizontalFieldManager();
VerticalFieldManager vfm = new VerticalFieldManager();
Labelfield uploaded = new Labelfield(" Uploaded on",font2,model.fontderive,Color.BLACK); hfm_date.add(uploaded); Labelfield upload_date = new Labelfield("27-Apr-09",Labelfield.FIELD_RIGHT, font2, model.fontderive,Color.BLACK);
Please provide me some guidance for the same.
07-25-2009 03:15 AM
Please look at this Thread:
07-25-2009 05:21 AM - edited 07-25-2009 05:25 AM
Thank you for you suggestion.
The solution you gave works for two buttons but I want to use for the following things:
Left Side: Right Side:
Can setHorizontalQuantization( ) can help in this part. If yes then how can I use it.
07-25-2009 06:54 AM
You can try using SpacerField , you can find code for this field in below mentioned thread
hope it will help you.