Form Field Order is wrong

I am making a form and would like to know
because when I call this form the order of fields
this different from what I had set in creating the
form, thus becoming the order of the same cofuso

Use [tt]
setVisibleItemProperties()
[/tt] to set not just which fields are visible, but also their order.

Right, but the detail I’m calling a class
as in this example:

then I lost where I need to put this

After your code there.

Just like in
this example
.

Sorry I think I expressed it badly, I am also using hibernate, so I call the class of fields here:

and here is being generated and where the entire form:

I apologize for the error in language perhaps, I live in Brazil and I’m still practicing the very English, but nevertheless I am grateful for your help my dear friend

In a BeanItem the field names (actually the getters) are the property ids so use something like

fPessoa.setItemDataSource(new BeanItem<PFisica>(pf));
fPessoa.setVisibleItemProperties(new Object[] {"iCd_pessoa","sNm_pessoa", ...});

to control the order in which the fields appear.

You have not provided the PFisica class you use in the Form but I assumed it is a sub class of Pessoa.

Now it is all right, now I gotta see distribute these fields in a vertical layout and
horizontal in order to leave the beautiful interface for the user, I am very grateful for the help.
Hugs