أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
To customize the creation code of a Swing element in NetBeans, right-click the element and selectCustomize code.... In the following pop-up, click the drop-down menu next to the code snippet and selectCustom creation. Then you can specify the code yourself as such:
//And remember do some manipulation to the DecimalFormat object if u used //
DecimalFormat df=DecimalFormat.getInstance();
jFormattedTextField=new javax.swing.JFormattedTextField(df);
Isn't it a JFormattedTextField? I don't remember something like JFormattedField.
You can set up formatted text fields to type dates and numbers in localized formats. For example, you can specify a mask for typing phone numbers in a particular format, such as (XX) X-XX-XX-XX-XX.