Readnonly textfield

How I can make this fieldtext “readnonly”?

jidField = new JTextField();

ResourceUtils.resLabel(jidLabel, jidField, Res.getString(“label.jid”) + “:”);

add(jidLabel, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));

add(jidField, new GridBagConstraints(1, 6, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));

Regards

A good source of information is always javadocs:

http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextField.html

jidField.setEditable(false);

Alex

thanks for your quick reply but How I can make checkbox “checked”?

public boolean playOutgoingSound() {

return outgoingMessageBox.isSelected();

}

I read some part of the docs and I don’'t find anything like this. Regards