The image is two ValidateTextFields (in a grid, but that's not relevent).
The code for a ValidateTextField is:
public class ValidateTextField extends Container {
Label label;
TextField textField;
public ValidateTextField() {
this("");
}
public ValidateTextField(String s) {
setLayout(new FlowLayout());
setScrollableX(false);
setScrollableY(false);
setUIID("BoldTextField");
label = new Label();
label.setUIID(null);
label.setText(null);
label.setIcon(null);
label.getAllStyles().setAlignment(Component.RIGHT);
textField = new TextField(s);
textField.setUIID(null);
add(LayeredLayout.encloseIn(textField, FlowLayout.encloseRight(label
)));
}
public void setTick() {
label.setIcon(Utils.getTick());
}
public void setCross() {
label.setIcon(Utils.getCross());
}
The UIID for the container is basically an image border with a red border
and which interior. What I'd like to do is have the tick and cross marks
move to the top RHS cornerof the container, but can't figure out a way to
do it.
--
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].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/ff6ce20d-266d-44d9-ad7a-f6d25831c628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.