How can I limit keyboard input before it is entered in JTextField (swing)
I want to allow the user to enter only "+ -0123456789abcdef ,." characters and no more than 1 ,or .char
,
.
My JTextField is a single line input field.
thank!
You can achieve this DocumentFilter . This allows you to control text processing for any type of document. Or use JFormattedTextField
Source: https://habr.com/ru/post/1785277/More articles:Facebook PHP form returns empty $ _POST - postmemory freeing, static class destructor? - memory-managementNeed help understanding a Perl instruction that uses File :: stat - perlThe variable may not have been initialized with an error in Java - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1785276/ms-access-how-to-supply-parameters-to-a-query-based-subform-control&usg=ALkJrhi27JLLJNYlBkAlDDz8LYl9A8pCfwThe process that Lucene symbolizes text - luceneXSLT: getting the maximum value from the received values ββfrom the source XML nodes - xmlNo spaces in JTextField - javaOpen pfx certificate container in .NET. - .netXSLT to find all nodes in one list that are not in another - xsltAll Articles