Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: lolonda dotKlar
Added: Dec 13, 2020 4:38 PM
Modified: Dec 14, 2020 3:52 AM
Views: 2
Tags: no tags
  1.         try {
  2.             MaskFormatter mf=new MaskFormatter("(0###) AAA - LL -UU");
  3.             JFormattedTextField jftf=new JFormattedTextField(mf);
  4.         } catch (ParseException ex) {
  5.             System.out.println("Parse error caused details: "+ex.getMessage());
  6.         }