Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java
How to allow only two letters in square bracket in java
Eg : [AB] like this i need to give .
Posted 28-Sep-12 19:41pm
Comments
Sergey Alexandrovich Kryukov at 29-Sep-12 1:42am
   
Allow... for who? :-)
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Assuming that you want to be able to introduce only a [@@] (where @@ are two letters) inside an edit box. is that right?
 
Take a look at those links: http://www.devdaily.com/java/jwarehouse/eclipse/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/mask/EditMask.java.shtml[^]
http://www.java2s.com/Tutorial/Java/0240__Swing/FormattedMaskedInputnewMaskFormatter.htm[^]
http://www.java2s.com/Code/Java/Swing-JFC/JFormattedTextFieldaninputmaskforatelephonenumber.htm[^]
 
You are interested on searching for a "INPUT MASK" or "EDIT MASK".
 
Good luck!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 239
1 Sarvesh Kumar Gupta 185
2 George Jonsson 154
3 ArunRajendra 144
4 Richard MacCutchan 140


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid