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.