final PTextBox textBox = new PTextBox();
final PTextBox textBoxReadOnly = new PTextBox();
textBoxReadOnly.setText("read only");
textBoxReadOnly.setEnabled(false);
final PTextBox passwordTextBox = new PPasswordTextBox();
final PTextBox passwordTextBoxReadOnly = new PPasswordTextBox();
passwordTextBoxReadOnly.setText("xxxxxxxxxxxx");
passwordTextBoxReadOnly.setEnabled(false);
final PTextArea textArea = new PTextArea();
panel.add(new PLabel("Normal text box:"));
panel.add(textBox);
panel.add(textBoxReadOnly);