Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

I am developing a window based application and i am using java and Netbeans as its workstation, so I want to know how to define jFormatted field?

user-image
Question ajoutée par Mohamed Abukar , IT Consultant , Buuho Trading LLC
Date de publication: 2013/09/19
Mohd shahnawaz khan
par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution

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);

 

 

 

Utilisateur supprimé
par Utilisateur supprimé

Isn't it a JFormattedTextField? I don't remember something like JFormattedField.

mukhtar ahmed Ibrahim
par mukhtar ahmed Ibrahim , Software Engineer , the norwegian tax administration (skatteetaten)

 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.

More Questions Like This