JTextField question.

How can I make it so that the user can't change what's in the field?
[77 byte] By [TheSandlota] at [2007-10-1 1:51:17]
# 1
ive checked the methods associated with this class. there aren't too many boolean type returns. maybe a different class should be used?
TheSandlota at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 2
look at setEnabled, and setEditable/Kaj
kajbja at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 3
thanks. where did you find these methods?
TheSandlota at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 4
In the documentation: http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextField.html/Kaj
kajbja at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 5
this is a really random question .. but if your name is kaj, do you know a guy named rich lam?
TheSandlota at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 6
> this is a really random question .. but if your name> is kaj, do you know a guy named rich lam?Yes, my name is Kaj, and no I don't know him./Kaj
kajbja at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...
# 7
i see. well maybe you'll meet him in your life time.
TheSandlota at 2007-7-8 8:13:51 > top of Java-index,Java Essentials,Java Programming...