textfield

Hi;I have a jTextField with 6 columns. I want that when six characters are typed, it automatically opens a new panel.I mean, I won't press any key or button after typing 6 characters but it'll recognize if 6 characters are typed. Is there a way to do this?
[279 byte] By [FuRK@Na] at [2007-11-27 8:43:25]
# 1
Yep, I'd use a DocumentListener.
PhHeina at 2007-7-12 20:43:07 > top of Java-index,Java Essentials,New To Java...
# 2
i guess, this class is what i was looking for:) thanks. i'll try to solve my problem
FuRK@Na at 2007-7-12 20:43:07 > top of Java-index,Java Essentials,New To Java...