Results 1 to 2 of 2
Thread: Constraining Input in JTextField
- 06-26-2008, 05:44 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
Constraining Input in JTextField
I am writing a program that has a bunch of little JTextFields fields (sudoku). Ideally each of these text fields will only accept one character. Using setColumns() or defining the number of columns in the constructor only limits the size of the display, not the amount of text accepted. Any ideas? Perhaps JTextField is not the correct component to use in this situation? Thanks in advance.
- 06-26-2008, 06:25 PM #2
Similar Threads
-
JtextField
By kashifu in forum Advanced JavaReplies: 2Last Post: 06-27-2008, 04:25 PM -
how to focus to another JTextfield?
By birdofprey in forum AWT / SwingReplies: 2Last Post: 04-09-2008, 01:08 PM -
Using Columns With JTextField
By The Evil Genius in forum AWT / SwingReplies: 1Last Post: 03-17-2008, 01:01 AM -
how to take input and verify input in Java programs
By bilal_ali_java in forum Advanced JavaReplies: 0Last Post: 07-21-2007, 08:46 AM -
help with JTextfield
By gary in forum New To JavaReplies: 4Last Post: 07-11-2007, 01:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks