jTextField Case Sensitivity!
Hi guys,
Just wanna ask how i'm going to set my jTextField that accept Lowercase and Uppercase? it's not Case Sensitive.
i'm using netbeans 5.5.
like this:
String input = item_desc_t1.getText();
input.equalsIgnoreCase(input);
there's another way? thanks.
[302 byte] By [
_onmosh_a] at [2007-11-27 1:37:09]

# 1
> Just wanna ask how i'm going to set my jTextField that accept Lowercase and Uppercase?
Don't understand the question, thats the default behaviour of all Swing text components, to accept upper and lowever case characters.
If you are say that your want all character to be UPPER cased or all characters to be LOWER cased, then you should be using a JFormattedTextField or you can write a DocumentFilter to convert character to either upper or lower case as they are typed.