If you are experiencing an issue please mention the full platform your
issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 12.2
Desktop OS Windows 10 Pro
Simulator latest
Device simulator IOS, Android
Please suggest how to center align a textField with params as below.
Always justifies to RIGHT. LEFT works correctly
Form hi = new Form("Center Text in TextField", BoxLayout.y());
TextField txt = new TextField("55565");
txt.setEditable(true);
txt.getAllStyles().setAlignment(TextField.CENTER);
txt.setSingleLineTextArea(true);
txt.setConstraint(TextField.DECIMAL);
hi.add(txt);
hi.show();
Regards
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/851d187e-6f82-4333-9c69-d96518cffc01o%40googlegroups.com.