[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 05:18 PM 12/18/2001 -0500, jason@OpinionOne.com
I have created a keypad using a JTextfield, 12
JButtons, and a JDialog window. Is there a way to set
a Listener on the JTextField that won't allow any more
than four characters to be typed in it?
I'd have to dig through some GUI code for an example,
but if I remember correctly, take a look at the
Document, DocumentListener, and DocumentEvent interfaces.
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com