ol.setComponentAlignment(tf, Alignment.TOP_RIGHT);
tf = new TextField("Short caption");
tf.setWidth("100px");
tf.setComponentError(new UserError("error message"));
ol.addComponent(tf);
ol.setComponentAlignment(tf, Alignment.TOP_RIGHT);
tf = new TextField("Short caption");
tf.setComponentError(new UserError("error message"));
tf.setIcon(new ThemeResource("icons/16/calendar.png"));
tf.setWidth("100px");
tf.setComponentError(new UserError("error message"));
ol.addComponent(tf);
ol.setComponentAlignment(tf, Alignment.TOP_RIGHT);
tf = new TextField();
tf.setValue("No caption");