tf = new TextField("Centered");
tf.setInputPrompt("Guess what?");
tf.addStyleName("align-center");
row.addComponent(tf);
PasswordField pwf = new PasswordField("Password");
pwf.setInputPrompt("Secret words");
pwf.addStyleName("inline-icon");
pwf.setIcon(FontAwesome.LOCK);
row.addComponent(pwf);
pwf = new PasswordField("Password, right-aligned");
pwf.setInputPrompt("Secret words");
pwf.addStyleName("inline-icon");
pwf.addStyleName("align-right");
pwf.setIcon(FontAwesome.LOCK);
row.addComponent(pwf);
pwf = new PasswordField("Password, centered");
pwf.setInputPrompt("Secret words");
pwf.addStyleName("inline-icon");
pwf.addStyleName("align-center");
pwf.setIcon(FontAwesome.LOCK);
row.addComponent(pwf);
tf = new TextField("Tiny");
tf.setValue("Field value");
tf.addStyleName("tiny");