Quick Snippets: Filter JTextField Data
Java makes it real easy to limit the data type of a JTextField with documents. Java allows you to set different documents that will validate user inputed data on the fly. For example in an options dialog, it is common to see a field that will only allow numerical inputs. This technique can be accomplished [...]
