Silvio Guedes - 2014-08-04

Hi friends

I can not put the focus on this component by opening internalframe:

public class LocatarioPFDetailFrame extends InternalFrame {

private LocatarioPFDetailFrameController controller = null;
JPanel buttonsPanel = new JPanel();
JPanel buttons2Panel = new JPanel();
JPanel buttons3Panel = new JPanel();
GridBagLayout gridBagLayout1 = new GridBagLayout();
private Form mainPanel = new Form();

FlowLayout flowLayout1 = new FlowLayout();

InsertButton insertButton = new InsertButton();
EditButton editButton = new EditButton();
ReloadButton reloadButton = new ReloadButton();
SaveButton saveButton = new SaveButton();
DeleteButton deleteButton = new DeleteButton();
CopyButton copyButton = new CopyButton();

InsertButton insertButton1 = new InsertButton();
EditButton editButton1 = new EditButton();
SaveButton saveButton1 = new SaveButton();
ReloadButton reloadButton1 = new ReloadButton();
DeleteButton deleteButton1 = new DeleteButton();
CopyButton copyButton1 = new CopyButton();

InsertButton insertButton2 = new InsertButton();
EditButton editButton2 = new EditButton();
SaveButton saveButton2 = new SaveButton();
ReloadButton reloadButton2 = new ReloadButton();
DeleteButton deleteButton2 = new DeleteButton();
CopyButton copyButton2 = new CopyButton();

JTabbedPane tabbedPane = new JTabbedPane();
JPanel headerPanel = new JPanel();
JPanel headerPanelProfissionais = new JPanel();
JPanel headerPanelPatrimoniais = new JPanel();
JPanel headerBensMoveis = new JPanel();
JPanel headerBensImoveis = new JPanel();
JPanel headerPanelReferencias = new JPanel();
JPanel headerPanelReservado = new JPanel();

JPanel headerPanel1 = new JPanel();
JPanel headerButtonsPanel = new JPanel();
Form headerFormPanel = new Form();
Form headerFormPanelProfissionais = new Form();
Form headerFormPanelPatrimoniais = new Form();
Form headerFormBensMoveis = new Form();
Form headerFormBensIMoveis = new Form();
Form headerFormPanelReferencias = new Form();
Form headerFormPanelReservado = new Form();

JPanel conclusaoHeaderPanel = new JPanel();
JPanel retornoHeaderPanel = new JPanel();
JPanel entregaHeaderPanel = new JPanel();

private Connection conn = null;

TextAreaControl controlNote = new TextAreaControl();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
TitledBorder titledBorder3;
TitledBorder titledBorder4;
TitledBorder bensMoveis;
TitledBorder bensImoveis;
JPanel whPanel = new JPanel();

BorderLayout borderLayout1 = new BorderLayout();
BorderLayout borderLayout2 = new BorderLayout();
BorderLayout borderLayout3 = new BorderLayout();
BorderLayout borderLayout4 = new BorderLayout();
FlowLayout flowLayout2 = new FlowLayout();

GridControl grid = new GridControl();
ComboColumn colDay = new ComboColumn();
TimeColumn colStartMorningHour = new TimeColumn();
TimeColumn colEndMorningHour = new TimeColumn();
TimeColumn colStartAfternoonHour = new TimeColumn();
TimeColumn colEndAfternoonHour = new TimeColumn();
NavigatorBar navigatorBar = new NavigatorBar();
ExportButton exportButton1 = new ExportButton();
TitledBorder titledBorderorcamento;

// detalhe da tabela locatariopf

// Orcamento
// JPanel orcamentoHeaderPanel = new JPanel();
private Form orcamentoFormPanel = new Form();
public JPanel formPanel = new JPanel();
public static JPanel orcamentoHeaderPanel = new JPanel();
JPanel wxPanel = new JPanel();
JPanel itensPanel = new JPanel();
JPanel orcamentoButtonsPanel = new JPanel();

// detalhe da tabela locatario PF
LabelControl labellocatariopf_id = new LabelControl();
LabelControl labellocatariopf_excluido = new LabelControl();
LabelControl labellocatariopf_codigocliente = new LabelControl();
LabelControl labellocatariopf_nome = new LabelControl();
LabelControl labellocatariopf_naturalidade = new LabelControl();
LabelControl labellocatariopf_nacionalidade = new LabelControl();
LabelControl labellocatariopf_estadocivil = new LabelControl();
LabelControl labellocatariopf_datanasc = new LabelControl();
LabelControl labellocatariopf_nomepai = new LabelControl();
LabelControl labellocatariopf_nomemae = new LabelControl();
LabelControl labellocatariopf_cpf = new LabelControl();
LabelControl labellocatariopf_numerorg = new LabelControl();
LabelControl labellocatariopf_orgaoexpedorrg = new LabelControl();
LabelControl labellocatariopf_conjuge = new LabelControl();
LabelControl labellocatariopf_cpf2 = new LabelControl();
LabelControl labellocatariopf_numerorg2 = new LabelControl();
LabelControl labellocatariopf_orgaoexpedorrg2 = new LabelControl();
LabelControl labellocatariopf_endereco = new LabelControl();
LabelControl labellocatariopf_numero = new LabelControl();
LabelControl labellocatariopf_bairro = new LabelControl();
LabelControl labellocatariopf_complemento = new LabelControl();
LabelControl labellocatariopf_cidade = new LabelControl();
LabelControl labellocatariopf_uf = new LabelControl();
LabelControl labellocatariopf_cep = new LabelControl();
LabelControl labellocatariopf_profissao = new LabelControl();
LabelControl labellocatariopf_empresa = new LabelControl();
LabelControl labellocatariopf_funcao = new LabelControl();
LabelControl labellocatariopf_endereco2 = new LabelControl();
LabelControl labellocatariopf_numero2 = new LabelControl();
LabelControl labellocatariopf_bairro2 = new LabelControl();
LabelControl labellocatariopf_complemento2 = new LabelControl();
LabelControl labellocatariopf_cidade2 = new LabelControl();
LabelControl labellocatariopf_uf2 = new LabelControl();
LabelControl labellocatariopf_cep2 = new LabelControl();
LabelControl labellocatariopf_telefones = new LabelControl();
LabelControl labellocatariopf_temposervico = new LabelControl();
LabelControl labellocatariopf_salario = new LabelControl();
LabelControl labellocatariopf_automovel = new LabelControl();
LabelControl labellocatariopf_modelo = new LabelControl();
LabelControl labellocatariopf_placa = new LabelControl();
LabelControl labellocatariopf_ano = new LabelControl();
LabelControl labellocatariopf_automovel2 = new LabelControl();
LabelControl labellocatariopf_modelo2 = new LabelControl();
LabelControl labellocatariopf_placa2 = new LabelControl();
LabelControl labellocatariopf_ano2 = new LabelControl();
LabelControl labellocatariopf_especie = new LabelControl();
LabelControl labellocatariopf_endereco3 = new LabelControl();
LabelControl labellocatariopf_numero3 = new LabelControl();
LabelControl labellocatariopf_bairro3 = new LabelControl();
LabelControl labellocatariopf_complemento3 = new LabelControl();
LabelControl labellocatariopf_cidade3 = new LabelControl();
LabelControl labellocatariopf_uf3 = new LabelControl();
LabelControl labellocatariopf_cep3 = new LabelControl();
LabelControl labellocatariopf_especie2 = new LabelControl();
LabelControl labellocatariopf_endereco4 = new LabelControl();
LabelControl labellocatariopf_numero4 = new LabelControl();
LabelControl labellocatariopf_bairro4 = new LabelControl();
LabelControl labellocatariopf_complemento4 = new LabelControl();
LabelControl labellocatariopf_cidade4 = new LabelControl();
LabelControl labellocatariopf_uf4 = new LabelControl();
LabelControl labellocatariopf_cep4 = new LabelControl();
LabelControl labellocatariopf_nomebanco = new LabelControl();
LabelControl labellocatariopf_agencia = new LabelControl();
LabelControl labellocatariopf_conta = new LabelControl();
LabelControl labellocatariopf_nomebanco2 = new LabelControl();
LabelControl labellocatariopf_agencia2 = new LabelControl();
LabelControl labellocatariopf_conta2 = new LabelControl();
LabelControl labellocatariopf_cartoescredito = new LabelControl();
LabelControl labellocatariopf_comerciais = new LabelControl();
LabelControl labellocatariopf_comerciais2 = new LabelControl();
LabelControl labellocatariopf_imobiliarias = new LabelControl();
LabelControl labellocatariopf_nomes = new LabelControl();
LabelControl labellocatariopf_tel = new LabelControl();
LabelControl labellocatariopf_nomes2 = new LabelControl();
LabelControl labellocatariopf_tel2 = new LabelControl();
LabelControl labellocatariopf_spc = new LabelControl();
LabelControl labellocatariopf_serasa = new LabelControl();
LabelControl labellocatariopf_outros = new LabelControl();
LabelControl labellocatariopf_passagem = new LabelControl();
LabelControl labellocatariopf_registro = new LabelControl();
LabelControl labellocatariopf_cheques = new LabelControl();
LabelControl labellocatariopf_numerocheque = new LabelControl();
LabelControl labellocatariopf_datas = new LabelControl();
LabelControl labellocatariopf_corretor = new LabelControl();
LabelControl labellocatariopf_confirmado = new LabelControl();
LabelControl labellocatariopf_referencias = new LabelControl();
LabelControl labellocatariopf_pessoa = new LabelControl();
LabelControl labellocatariopf_ativade = new LabelControl();
LabelControl labellocatariopf_dataconstituicao = new LabelControl();
LabelControl labellocatariopf_imovel = new LabelControl();
LabelControl labellocatariopf_valor2 = new LabelControl();
LabelControl labellocatariopf_inscmunicipal = new LabelControl();
LabelControl labellocatariopf_fax = new LabelControl();
LabelControl labellocatariopf_socio = new LabelControl();
LabelControl labellocatariopf_profissaosocio = new LabelControl();
LabelControl labellocatariopf_funcaosocio = new LabelControl();
LabelControl labellocatariopf_endereco5 = new LabelControl();
LabelControl labellocatariopf_numero5 = new LabelControl();
LabelControl labellocatariopf_bairro5 = new LabelControl();
LabelControl labellocatariopf_complemento5 = new LabelControl();
LabelControl labellocatariopf_cidade5 = new LabelControl();
LabelControl labellocatariopf_uf5 = new LabelControl();
LabelControl labellocatariopf_cep5 = new LabelControl();
LabelControl labellocatariopf_telefonesocio = new LabelControl();
LabelControl labellocatariopf_celularsocio = new LabelControl();
LabelControl labellocatariopf_tempoempresa = new LabelControl();
LabelControl labellocatariopf_salariosocio = new LabelControl();
LabelControl labellocatariopf_outrasativades = new LabelControl();
LabelControl labellocatariopf_socio2 = new LabelControl();
LabelControl labellocatariopf_profissaosocio2 = new LabelControl();
LabelControl labellocatariopf_funcaosocio2 = new LabelControl();
LabelControl labellocatariopf_endereco6 = new LabelControl();
LabelControl labellocatariopf_numero6 = new LabelControl();
LabelControl labellocatariopf_bairro6 = new LabelControl();
LabelControl labellocatariopf_complemento6 = new LabelControl();
LabelControl labellocatariopf_cidade6 = new LabelControl();
LabelControl labellocatariopf_uf6 = new LabelControl();
LabelControl labellocatariopf_cep6 = new LabelControl();
LabelControl labellocatariopf_telefonesocio2 = new LabelControl();
LabelControl labellocatariopf_celularsocio2 = new LabelControl();
LabelControl labellocatariopf_tempoempresa2 = new LabelControl();
LabelControl labellocatariopf_salariosocio2 = new LabelControl();
LabelControl labellocatariopf_outrasativades2 = new LabelControl();
LabelControl labellocatariopf_telefones2 = new LabelControl();
LabelControl labellocatariopf_telcom = new LabelControl();
LabelControl labellocatariopf_telcom2 = new LabelControl();
LabelControl labellocatariopf_telimob = new LabelControl();
LabelControl labellocatariopf_sexo = new LabelControl();
LabelControl labellocatariopf_contr = new LabelControl();
LabelControl labellocatariopf_datacadastro = new LabelControl();

ComboBoxControl controlSex = new ComboBoxControl();
CurrencyControl controlCurrency = new CurrencyControl();
DateControl controlDate = new DateControl();
ComboBoxControl controlUf = new ComboBoxControl();

TextControl Controllocatariopf_id = new TextControl();
TextControl Controllocatariopf_excluido = new TextControl();
TextControl Controllocatariopf_codigocliente = new TextControl();
TextControl Controllocatariopf_nome = new TextControl();
TextControl Controllocatariopf_naturalidade = new TextControl();
TextControl Controllocatariopf_nacionalidade = new TextControl();
ComboBoxControl Controllocatariopf_estadocivil = new ComboBoxControl();
DateControl Controllocatariopf_datanasc = new DateControl();
TextControl Controllocatariopf_nomepai = new TextControl();
TextControl Controllocatariopf_nomemae = new TextControl();
TextControl Controllocatariopf_cpf = new TextControl();
TextControl Controllocatariopf_numerorg = new TextControl();
TextControl Controllocatariopf_orgaoexpedorrg = new TextControl();
TextControl Controllocatariopf_conjuge = new TextControl();
TextControl Controllocatariopf_cpf2 = new TextControl();
TextControl Controllocatariopf_numerorg2 = new TextControl();
TextControl Controllocatariopf_orgaoexpedorrg2 = new TextControl();
TextControl Controllocatariopf_endereco = new TextControl();
TextControl Controllocatariopf_numero = new TextControl();
TextControl Controllocatariopf_bairro = new TextControl();
TextControl Controllocatariopf_complemento = new TextControl();
TextControl Controllocatariopf_cidade = new TextControl();
ComboBoxControl Controllocatariopf_uf = new ComboBoxControl();
TextControl Controllocatariopf_cep = new TextControl();
TextControl Controllocatariopf_profissao = new TextControl();
TextControl Controllocatariopf_empresa = new TextControl();
TextControl Controllocatariopf_funcao = new TextControl();
TextControl Controllocatariopf_endereco2 = new TextControl();
TextControl Controllocatariopf_numero2 = new TextControl();
TextControl Controllocatariopf_bairro2 = new TextControl();
TextControl Controllocatariopf_complemento2 = new TextControl();
TextControl Controllocatariopf_cidade2 = new TextControl();
ComboBoxControl Controllocatariopf_uf2 = new ComboBoxControl();
TextControl Controllocatariopf_cep2 = new TextControl();
TextControl Controllocatariopf_telefones = new TextControl();
TextControl Controllocatariopf_temposervico = new TextControl();
CurrencyControl Controllocatariopf_salario = new CurrencyControl();
TextControl Controllocatariopf_automovel = new TextControl();
TextControl Controllocatariopf_modelo = new TextControl();
TextControl Controllocatariopf_placa = new TextControl();
TextControl Controllocatariopf_ano = new TextControl();
TextControl Controllocatariopf_automovel2 = new TextControl();
TextControl Controllocatariopf_modelo2 = new TextControl();
TextControl Controllocatariopf_placa2 = new TextControl();
TextControl Controllocatariopf_ano2 = new TextControl();
ComboBoxControl Controllocatariopf_especie = new ComboBoxControl();
TextControl Controllocatariopf_endereco3 = new TextControl();
TextControl Controllocatariopf_numero3 = new TextControl();
TextControl Controllocatariopf_bairro3 = new TextControl();
TextControl Controllocatariopf_complemento3 = new TextControl();
TextControl Controllocatariopf_cidade3 = new TextControl();
ComboBoxControl Controllocatariopf_uf3 = new ComboBoxControl();
TextControl Controllocatariopf_cep3 = new TextControl();
TextControl Controllocatariopf_especie2 = new TextControl();
TextControl Controllocatariopf_endereco4 = new TextControl();
TextControl Controllocatariopf_numero4 = new TextControl();
TextControl Controllocatariopf_bairro4 = new TextControl();
TextControl Controllocatariopf_complemento4 = new TextControl();
TextControl Controllocatariopf_cidade4 = new TextControl();
ComboBoxControl Controllocatariopf_uf4 = new ComboBoxControl();
TextControl Controllocatariopf_cep4 = new TextControl();
TextControl Controllocatariopf_nomebanco = new TextControl();
TextControl Controllocatariopf_agencia = new TextControl();
TextControl Controllocatariopf_conta = new TextControl();
TextControl Controllocatariopf_nomebanco2 = new TextControl();
TextControl Controllocatariopf_agencia2 = new TextControl();
TextControl Controllocatariopf_conta2 = new TextControl();
TextControl Controllocatariopf_cartoescredito = new TextControl();
TextControl Controllocatariopf_comerciais = new TextControl();
TextControl Controllocatariopf_comerciais2 = new TextControl();
TextControl Controllocatariopf_imobiliarias = new TextControl();
TextControl Controllocatariopf_nomes = new TextControl();
TextControl Controllocatariopf_tel = new TextControl();
TextControl Controllocatariopf_nomes2 = new TextControl();
TextControl Controllocatariopf_tel2 = new TextControl();
CheckBoxControl Controllocatariopf_spc = new CheckBoxControl();
CheckBoxControl Controllocatariopf_serasa = new CheckBoxControl();
CheckBoxControl Controllocatariopf_outros = new CheckBoxControl();
CheckBoxControl Controllocatariopf_passagem = new CheckBoxControl();
CheckBoxControl Controllocatariopf_registro = new CheckBoxControl();
TextControl Controllocatariopf_cheques = new TextControl();
TextControl Controllocatariopf_numerocheque = new TextControl();
TextControl Controllocatariopf_datas = new TextControl();
TextControl Controllocatariopf_corretor = new TextControl();
ComboBoxControl Controllocatariopf_confirmado = new ComboBoxControl();
TextControl Controllocatariopf_referencias = new TextControl();
TextControl Controllocatariopf_pessoa = new TextControl();
TextControl Controllocatariopf_ativade = new TextControl();
DateControl Controllocatariopf_dataconstituicao = new DateControl();
TextControl Controllocatariopf_imovel = new TextControl();
TextControl Controllocatariopf_valor2 = new TextControl();
TextControl Controllocatariopf_inscmunicipal = new TextControl();
TextControl Controllocatariopf_fax = new TextControl();
TextControl Controllocatariopf_socio = new TextControl();
TextControl Controllocatariopf_profissaosocio = new TextControl();
TextControl Controllocatariopf_funcaosocio = new TextControl();
TextControl Controllocatariopf_endereco5 = new TextControl();
TextControl Controllocatariopf_numero5 = new TextControl();
TextControl Controllocatariopf_bairro5 = new TextControl();
TextControl Controllocatariopf_complemento5 = new TextControl();
TextControl Controllocatariopf_cidade5 = new TextControl();
ComboBoxControl Controllocatariopf_uf5 = new ComboBoxControl();
TextControl Controllocatariopf_cep5 = new TextControl();
TextControl Controllocatariopf_telefonesocio = new TextControl();
TextControl Controllocatariopf_celularsocio = new TextControl();
TextControl Controllocatariopf_tempoempresa = new TextControl();
CurrencyControl Controllocatariopf_salariosocio = new CurrencyControl();
TextControl Controllocatariopf_outrasativades = new TextControl();
TextControl Controllocatariopf_socio2 = new TextControl();
TextControl Controllocatariopf_profissaosocio2 = new TextControl();
TextControl Controllocatariopf_funcaosocio2 = new TextControl();
TextControl Controllocatariopf_endereco6 = new TextControl();
TextControl Controllocatariopf_numero6 = new TextControl();
TextControl Controllocatariopf_bairro6 = new TextControl();
TextControl Controllocatariopf_complemento6 = new TextControl();
TextControl Controllocatariopf_cidade6 = new TextControl();
ComboBoxControl Controllocatariopf_uf6 = new ComboBoxControl();
TextControl Controllocatariopf_cep6 = new TextControl();
TextControl Controllocatariopf_telefonesocio2 = new TextControl();
TextControl Controllocatariopf_celularsocio2 = new TextControl();
TextControl Controllocatariopf_tempoempresa2 = new TextControl();
CurrencyControl Controllocatariopf_salariosocio2 = new CurrencyControl();
TextControl Controllocatariopf_outrasativades2 = new TextControl();
TextControl Controllocatariopf_telefones2 = new TextControl();
TextControl Controllocatariopf_telcom = new TextControl();
TextControl Controllocatariopf_telcom2 = new TextControl();
TextControl Controllocatariopf_telimob = new TextControl();
ComboBoxControl Controllocatariopf_sexo = new ComboBoxControl();
TextControl Controllocatariopf_contr = new TextControl();
TextControl Controllocatariopf_datacadastro = new TextControl();

Border blackline, raisedetched, loweredetched,
raisedbevel, loweredbevel, empty;

public int os_id;
public static String pk1;
public String pk;
GenericButton printButton = new GenericButton(new ImageIcon(ClientUtils.getImage("printer.gif")));
GenericButton imprimirOrdemServicoButton = new GenericButton(new ImageIcon(ClientUtils.getImage("printer.gif")));
GenericButton editorTextoButton = new GenericButton(new ImageIcon(ClientUtils.getImage("printer.gif")));
// JButton imprimirOrcamentoButton = new JButton(new ImageIcon(ClientUtils.getImage("print.gif")));

public static String pkOrcamento = null;
private JPanel p;
public com.br.funcoes.DateFunctions data = new com.br.funcoes.DateFunctions();
public EditorTexto editorTexto;
public int linhaTela1;
public int linhaTela2;
public int linhaTela3;
public int linhaTela4;

public LocatarioPFDetailFrame(Connection conn,LocatarioPFDetailFrameController dataController) {
try {
this.conn = conn;
this.controller = dataController;
this.pk = LocatarioPFDetailFrameController.pk;

  jbInit();

// mainPanel.setFormController(dataController);

  // link the parent grid to the current Form...
  HashSet pk = new HashSet();
  pk.add("locatariopf_id"); // pk for Form is based on one only attribute...

// mainPanel.linkGrid(dataController.getGridFrame().getGrid(),pk,true,true,true,navigatorBar);
headerFormPanel.linkGrid(controller.getGridFrame().getGrid(),pk,true,true,true,navigatorBar);
setSize(590,600);
setMinimumSize(new Dimension(590,600));

  KeyStroke esc = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
  Action actionESC = new AbstractAction() {

    public void actionPerformed(ActionEvent e) {
      try {
        closeFrame();
      }
      catch (PropertyVetoException ex) {
      }
    }

  };
  this.getInputMap().put(esc,"esc");
  this.getActionMap().put("esc",actionESC);

// mainPanel.getActionMap().mapActionForKeyStroke(esc,actionESC);
// HashSet conj = new HashSet(this.getFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS));
// conj.add(AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_ENTER, 0));
// this.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, conj);

}
catch(Exception e) {
  e.printStackTrace();
}

}

private void jbInit() throws Exception {

// OrcamentoPanel orcamentoHeaderPanel = new OrcamentoPanel(conn, this);

  setTitle("Cadastro de Locatários Pessoa Física");
  titledBorder1 = new TitledBorder("");
  titledBorder2 = new TitledBorder("");
  titledBorder3 = new TitledBorder("");
  titledBorder4 = new TitledBorder("");

  mainPanel.setVOClassName("br.com.imobweb.vo.LocatarioPFVO");

  mainPanel.setLayout(gridBagLayout1);
  mainPanel.setLayout(borderLayout2);
  buttonsPanel.setLayout(flowLayout1);
  flowLayout1.setAlignment(FlowLayout.LEFT);

  mainPanel.setBorder(titledBorder1);
  mainPanel.setInsertButton(insertButton);
  mainPanel.setCopyButton(copyButton);
  mainPanel.setEditButton(editButton);
  mainPanel.setReloadButton(reloadButton);
  mainPanel.setDeleteButton(deleteButton);
  mainPanel.setSaveButton(saveButton1);

  headerFormPanel.setInsertButton(insertButton);
  headerFormPanel.setCopyButton(copyButton);
  headerFormPanel.setEditButton(editButton);
  headerFormPanel.setReloadButton(reloadButton);
  headerFormPanel.setDeleteButton(deleteButton);
  headerFormPanel.setSaveButton(saveButton1);

// headerFormPanel.setEnabled(false);

  copyButton.setText("copyButton1");
  controlNote.setAttributeName("note");

// titledBorder1.setTitle("Title");
titledBorder1.setTitleColor(Color.blue);

// atribuição dos labels

    labellocatariopf_id.setText("locatariopf_id");
    labellocatariopf_codigocliente.setText("locatariopf_codigocliente");
    labellocatariopf_nome.setText("locatariopf_nome");
    labellocatariopf_naturalidade.setText("locatariopf_naturalidade");
    labellocatariopf_nacionalidade.setText("locatariopf_nacionalidade");
    labellocatariopf_estadocivil.setText("locatariopf_estadocivil");
    labellocatariopf_datanasc.setText("locatariopf_datanasc");
    labellocatariopf_nomepai.setText("locatariopf_nomepai");
    labellocatariopf_nomemae.setText("locatariopf_nomemae");
    labellocatariopf_cpf.setText("locatariopf_cpf");
    labellocatariopf_numerorg.setText("locatariopf_numerorg");
    labellocatariopf_orgaoexpedorrg.setText("locatariopf_orgaoexpedorrg");
    labellocatariopf_conjuge.setText("locatariopf_conjuge");
    labellocatariopf_cpf2.setText("locatariopf_cpf2");
    labellocatariopf_numerorg2.setText("locatariopf_numerorg2");
    labellocatariopf_orgaoexpedorrg2.setText("locatariopf_orgaoexpedorrg2");
    labellocatariopf_endereco.setText("locatariopf_endereco");
    labellocatariopf_numero.setText("locatariopf_numero");
    labellocatariopf_bairro.setText("locatariopf_bairro");
    labellocatariopf_complemento.setText("locatariopf_complemento");
    labellocatariopf_cidade.setText("locatariopf_cidade");
    labellocatariopf_uf.setText("locatariopf_uf");
    labellocatariopf_cep.setText("locatariopf_cep");
    labellocatariopf_profissao.setText("locatariopf_profissao");
    labellocatariopf_empresa.setText("locatariopf_empresa");
    labellocatariopf_funcao.setText("locatariopf_funcao");
    labellocatariopf_endereco2.setText("locatariopf_endereco2");
    labellocatariopf_numero2.setText("locatariopf_numero2");
    labellocatariopf_bairro2.setText("locatariopf_bairro2");
    labellocatariopf_complemento2.setText("locatariopf_complemento2");
    labellocatariopf_cidade2.setText("locatariopf_cidade2");
    labellocatariopf_uf2.setText("locatariopf_uf2");
    labellocatariopf_cep2.setText("locatariopf_cep2");
    labellocatariopf_telefones.setText("locatariopf_telefones");
    labellocatariopf_temposervico.setText("locatariopf_temposervico");
    labellocatariopf_salario.setText("locatariopf_salario");
    labellocatariopf_automovel.setText("locatariopf_automovel");
    labellocatariopf_modelo.setText("locatariopf_modelo");
    labellocatariopf_placa.setText("locatariopf_placa");
    labellocatariopf_ano.setText("locatariopf_ano");
    labellocatariopf_automovel2.setText("locatariopf_automovel2");
    labellocatariopf_modelo2.setText("locatariopf_modelo2");
    labellocatariopf_placa2.setText("locatariopf_placa2");
    labellocatariopf_ano2.setText("locatariopf_ano2");
    labellocatariopf_especie.setText("locatariopf_especie");
    labellocatariopf_endereco3.setText("locatariopf_endereco3");
    labellocatariopf_numero3.setText("locatariopf_numero3");
    labellocatariopf_bairro3.setText("locatariopf_bairro3");
    labellocatariopf_complemento3.setText("locatariopf_complemento3");
    labellocatariopf_cidade3.setText("locatariopf_cidade3");
    labellocatariopf_uf3.setText("locatariopf_uf3");
    labellocatariopf_cep3.setText("locatariopf_cep3");
    labellocatariopf_especie2.setText("locatariopf_especie2");
    labellocatariopf_endereco4.setText("locatariopf_endereco4");
    labellocatariopf_numero4.setText("locatariopf_numero4");
    labellocatariopf_bairro4.setText("locatariopf_bairro4");
    labellocatariopf_complemento4.setText("locatariopf_complemento4");
    labellocatariopf_cidade4.setText("locatariopf_cidade4");
    labellocatariopf_uf4.setText("locatariopf_uf4");
    labellocatariopf_cep4.setText("locatariopf_cep4");
    labellocatariopf_nomebanco.setText("locatariopf_nomebanco");
    labellocatariopf_agencia.setText("locatariopf_agencia");
    labellocatariopf_conta.setText("locatariopf_conta");
    labellocatariopf_nomebanco2.setText("locatariopf_nomebanco2");
    labellocatariopf_agencia2.setText("locatariopf_agencia2");
    labellocatariopf_conta2.setText("locatariopf_conta2");
    labellocatariopf_cartoescredito.setText("locatariopf_cartoescredito");
    labellocatariopf_comerciais.setText("locatariopf_comerciais");
    labellocatariopf_comerciais2.setText("locatariopf_comerciais2");
    labellocatariopf_imobiliarias.setText("locatariopf_imobiliarias");
    labellocatariopf_nomes.setText("locatariopf_nomes");
    labellocatariopf_tel.setText("locatariopf_tel");
    labellocatariopf_nomes2.setText("locatariopf_nomes2");
    labellocatariopf_tel2.setText("locatariopf_tel2");
    labellocatariopf_spc.setText("locatariopf_spc");
    labellocatariopf_serasa.setText("locatariopf_serasa");
    labellocatariopf_outros.setText("locatariopf_outros");
    labellocatariopf_passagem.setText("locatariopf_passagem");
    labellocatariopf_registro.setText("locatariopf_registro");
    labellocatariopf_cheques.setText("locatariopf_cheques");
    labellocatariopf_numerocheque.setText("locatariopf_numerocheque");
    labellocatariopf_datas.setText("locatariopf_datas");
    labellocatariopf_corretor.setText("locatariopf_corretor");
    labellocatariopf_confirmado.setText("locatariopf_confirmado");
    labellocatariopf_referencias.setText("locatariopf_referencias");
    labellocatariopf_pessoa.setText("locatariopf_pessoa");
    labellocatariopf_ativade.setText("locatariopf_ativade");
    labellocatariopf_dataconstituicao.setText("locatariopf_dataconstituicao");
    labellocatariopf_imovel.setText("locatariopf_imovel");
    labellocatariopf_valor2.setText("locatariopf_valor2");
    labellocatariopf_inscmunicipal.setText("locatariopf_inscmunicipal");
    labellocatariopf_fax.setText("locatariopf_fax");
    labellocatariopf_socio.setText("locatariopf_socio");
    labellocatariopf_profissaosocio.setText("locatariopf_profissaosocio");
    labellocatariopf_funcaosocio.setText("locatariopf_funcaosocio");
    labellocatariopf_endereco5.setText("locatariopf_endereco5");
    labellocatariopf_numero5.setText("locatariopf_numero5");
    labellocatariopf_bairro5.setText("locatariopf_bairro5");
    labellocatariopf_complemento5.setText("locatariopf_complemento5");
    labellocatariopf_cidade5.setText("locatariopf_cidade5");
    labellocatariopf_uf5.setText("locatariopf_uf5");
    labellocatariopf_cep5.setText("locatariopf_cep5");
    labellocatariopf_telefonesocio.setText("locatariopf_telefonesocio");
    labellocatariopf_celularsocio.setText("locatariopf_celularsocio");
    labellocatariopf_tempoempresa.setText("locatariopf_tempoempresa");
    labellocatariopf_salariosocio.setText("locatariopf_salariosocio");
    labellocatariopf_outrasativades.setText("locatariopf_outrasativades");
    labellocatariopf_socio2.setText("locatariopf_socio2");
    labellocatariopf_profissaosocio2.setText("locatariopf_profissaosocio2");
    labellocatariopf_funcaosocio2.setText("locatariopf_funcaosocio2");
    labellocatariopf_endereco6.setText("locatariopf_endereco6");
    labellocatariopf_numero6.setText("locatariopf_numero6");
    labellocatariopf_bairro6.setText("locatariopf_bairro6");
    labellocatariopf_complemento6.setText("locatariopf_complemento6");
    labellocatariopf_cidade6.setText("locatariopf_cidade6");
    labellocatariopf_uf6.setText("locatariopf_uf6");
    labellocatariopf_cep6.setText("locatariopf_cep6");
    labellocatariopf_telefonesocio2.setText("locatariopf_telefonesocio2");
    labellocatariopf_celularsocio2.setText("locatariopf_celularsocio2");
    labellocatariopf_tempoempresa2.setText("locatariopf_tempoempresa2");
    labellocatariopf_salariosocio2.setText("locatariopf_salariosocio2");
    labellocatariopf_outrasativades2.setText("locatariopf_outrasativades2");
    labellocatariopf_telefones2.setText("locatariopf_telefones2");
    labellocatariopf_telcom.setText("locatariopf_telcom");
    labellocatariopf_telcom2.setText("locatariopf_telcom2");
    labellocatariopf_telimob.setText("locatariopf_telimob");
    labellocatariopf_sexo.setText("locatariopf_sexo");
    labellocatariopf_contr.setText("locatariopf_contr");
    labellocatariopf_datacadastro.setText("locatariopf_datacadastro");

// atribuição dos conmtroles

// Dados Pessoais

  Controllocatariopf_codigocliente.setAttributeName("locatariopf_nome");
  Controllocatariopf_codigocliente.setMaxCharacters(50);
  Controllocatariopf_codigocliente.setUpperCase(true);
  Controllocatariopf_codigocliente.setEnabledOnEdit(true);
  Controllocatariopf_codigocliente.setRequired(true);
  Controllocatariopf_codigocliente.setTextAlignment(SwingConstants.LEFT);

  Controllocatariopf_naturalidade.setAttributeName("locatariopf_naturalidade");
  Controllocatariopf_naturalidade.setMaxCharacters(25);
  Controllocatariopf_naturalidade.setUpperCase(true);
  Controllocatariopf_naturalidade.setEnabledOnEdit(true);

  Controllocatariopf_nacionalidade.setAttributeName("locatariopf_nacionalidade");
  Controllocatariopf_nacionalidade.setMaxCharacters(25);
  Controllocatariopf_nacionalidade.setUpperCase(true);
  Controllocatariopf_nacionalidade.setEnabledOnEdit(true);

  Controllocatariopf_estadocivil.setAttributeName("locatariopf_estadocivil");
  Controllocatariopf_estadocivil.setDomainId("ESTADOCIVIL");
  Controllocatariopf_estadocivil.setLinkLabel(labellocatariopf_estadocivil);
  Controllocatariopf_estadocivil.setRequired(true);

  Controllocatariopf_sexo.setAttributeName("locatariopf_sexo");
  Controllocatariopf_sexo.setDomainId("SEXO");
  Controllocatariopf_sexo.setLinkLabel(labellocatariopf_sexo);
  Controllocatariopf_sexo.setRequired(true);

  Controllocatariopf_datanasc.setLocale(Locale.ENGLISH);
  Controllocatariopf_datanasc.setAttributeName("locatariopf_datanasc");
  Controllocatariopf_datanasc.setEnabledOnEdit(true);

  Controllocatariopf_nomepai.setAttributeName("locatariopf_nomepai");
  Controllocatariopf_nomepai.setMaxCharacters(50);
  Controllocatariopf_nomepai.setUpperCase(true);
  Controllocatariopf_nomepai.setEnabledOnEdit(true);

  Controllocatariopf_nomemae.setAttributeName("locatariopf_nomemae");
  Controllocatariopf_nomemae.setMaxCharacters(50); 
  Controllocatariopf_nomemae.setUpperCase(true);  
  Controllocatariopf_nomemae.setEnabledOnEdit(true);

  Controllocatariopf_cpf.setAttributeName("locatariopf_cpf");
  Controllocatariopf_cpf.setMaxCharacters(11);     
  Controllocatariopf_cpf.setEnabledOnEdit(true); 
  Controllocatariopf_cpf.setTrimText(true);
  Controllocatariopf_cpf.setUpperCase(true);

  Controllocatariopf_numerorg.setAttributeName("locatariopf_numerorg");       
  Controllocatariopf_numerorg.setMaxCharacters(20);
  Controllocatariopf_numerorg.setEnabledOnEdit(true);

  Controllocatariopf_orgaoexpedorrg.setAttributeName("locatariopf_orgaoexpedorrg");
  Controllocatariopf_orgaoexpedorrg.setMaxCharacters(20);
  Controllocatariopf_orgaoexpedorrg.setEnabledOnEdit(true);

  Controllocatariopf_conjuge.setAttributeName("locatariopf_conjuge");
  Controllocatariopf_conjuge.setMaxCharacters(20);
  Controllocatariopf_conjuge.setEnabledOnEdit(true);

  Controllocatariopf_cpf2.setAttributeName("locatariopf_cpf2");
  Controllocatariopf_cpf2.setMaxCharacters(11);     
  Controllocatariopf_cpf2.setEnabledOnEdit(true); 
  Controllocatariopf_cpf2.setTrimText(true);
  Controllocatariopf_cpf2.setUpperCase(true);

  Controllocatariopf_numerorg2.setAttributeName("locatariopf_numerorg2");       
  Controllocatariopf_numerorg2.setMaxCharacters(20);
  Controllocatariopf_numerorg2.setEnabledOnEdit(true);

  Controllocatariopf_orgaoexpedorrg2.setAttributeName("locatariopf_orgaoexpedorrg");
  Controllocatariopf_orgaoexpedorrg2.setMaxCharacters(20);
  Controllocatariopf_orgaoexpedorrg2.setEnabledOnEdit(true);

  Controllocatariopf_endereco.setAttributeName("locatariopf_endereco");
  Controllocatariopf_endereco.setMaxCharacters(100);
  Controllocatariopf_endereco.setEnabledOnEdit(true);

  Controllocatariopf_numero.setAttributeName("locatariopf_numero");
  Controllocatariopf_numero.setMaxCharacters(10);
  Controllocatariopf_numero.setEnabledOnEdit(true);

  Controllocatariopf_bairro.setAttributeName("locatariopf_bairro");
  Controllocatariopf_bairro.setMaxCharacters(20);
  Controllocatariopf_bairro.setEnabledOnEdit(true);

  Controllocatariopf_complemento.setAttributeName("locatariopf_complemento");
  Controllocatariopf_complemento.setMaxCharacters(20);
  Controllocatariopf_complemento.setEnabledOnEdit(true);

  Controllocatariopf_cidade.setAttributeName("locatariopf_cidade");
  Controllocatariopf_cidade.setMaxCharacters(30);
  Controllocatariopf_cidade.setEnabledOnEdit(true);

  Controllocatariopf_uf.setAttributeName("locatariopf_uf");
  Controllocatariopf_uf.setDomainId("UF");
  Controllocatariopf_uf.setLinkLabel(labellocatariopf_uf);

  Controllocatariopf_cep.setAttributeName("locatariopf_cep");
  Controllocatariopf_cep.setMaxCharacters(8);
  Controllocatariopf_cep.setEnabledOnEdit(true);

// Dados Profissionais

  Controllocatariopf_profissao.setAttributeName("locatariopf_profissao");
  Controllocatariopf_profissao.setMaxCharacters(20);
  Controllocatariopf_profissao.setEnabledOnEdit(true);

  Controllocatariopf_empresa.setAttributeName("locatariopf_empresa");
  Controllocatariopf_empresa.setMaxCharacters(20);
  Controllocatariopf_empresa.setEnabledOnEdit(true);

  Controllocatariopf_funcao.setAttributeName("locatariopf_funcao");
  Controllocatariopf_funcao.setMaxCharacters(8);
  Controllocatariopf_funcao.setEnabledOnEdit(true);

  Controllocatariopf_endereco2.setAttributeName("locatariopf_endereco2");
  Controllocatariopf_endereco2.setMaxCharacters(100);
  Controllocatariopf_endereco2.setEnabledOnEdit(true);

  Controllocatariopf_numero2.setAttributeName("locatariopf_numero2");
  Controllocatariopf_numero2.setMaxCharacters(10);
  Controllocatariopf_numero2.setEnabledOnEdit(true);

  Controllocatariopf_bairro2.setAttributeName("locatariopf_bairro2");
  Controllocatariopf_bairro2.setMaxCharacters(20);
  Controllocatariopf_bairro2.setEnabledOnEdit(true);

  Controllocatariopf_complemento2.setAttributeName("locatariopf_complemento2");
  Controllocatariopf_complemento2.setMaxCharacters(20);
  Controllocatariopf_complemento2.setEnabledOnEdit(true);

  Controllocatariopf_cidade2.setAttributeName("locatariopf_cidade2");
  Controllocatariopf_cidade2.setMaxCharacters(30);
  Controllocatariopf_cidade2.setEnabledOnEdit(true);

  Controllocatariopf_uf2.setAttributeName("locatariopf_uf2");
  Controllocatariopf_uf2.setDomainId("UF");
  Controllocatariopf_uf2.setLinkLabel(labellocatariopf_uf2);

  Controllocatariopf_cep2.setAttributeName("locatariopf_cep2");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_telefones2.setAttributeName("locatariopf_telefones2");
  Controllocatariopf_telefones2.setMaxCharacters(20);
  Controllocatariopf_telefones2.setEnabledOnEdit(true);

  Controllocatariopf_tempoempresa.setAttributeName("locatariopf_tempoempresa");
  Controllocatariopf_tempoempresa.setMaxCharacters(8);
  Controllocatariopf_tempoempresa.setEnabledOnEdit(true);

  Controllocatariopf_salario.setAttributeName("locatariopf_salario");
  Controllocatariopf_salario.setMaxCharacters(15);
  Controllocatariopf_salario.setEnabledOnEdit(true);

  Controllocatariopf_especie.setAttributeName("locatariopf_especie");
  Controllocatariopf_especie.setDomainId("ESPECIEIMOVEL");
  Controllocatariopf_especie.setLinkLabel(labellocatariopf_especie);
  Controllocatariopf_especie.setRequired(true);

  Controllocatariopf_endereco2.setAttributeName("locatariopf_endereco3");
  Controllocatariopf_endereco2.setMaxCharacters(100);
  Controllocatariopf_endereco2.setEnabledOnEdit(true);

  Controllocatariopf_numero2.setAttributeName("locatariopf_numero3");
  Controllocatariopf_numero2.setMaxCharacters(10);
  Controllocatariopf_numero2.setEnabledOnEdit(true);

  Controllocatariopf_bairro2.setAttributeName("locatariopf_bairro3");
  Controllocatariopf_bairro2.setMaxCharacters(20);
  Controllocatariopf_bairro2.setEnabledOnEdit(true);

  Controllocatariopf_complemento2.setAttributeName("locatariopf_complemento3");
  Controllocatariopf_complemento2.setMaxCharacters(20);
  Controllocatariopf_complemento2.setEnabledOnEdit(true);

  Controllocatariopf_cidade2.setAttributeName("locatariopf_cidade3");
  Controllocatariopf_cidade2.setMaxCharacters(30);
  Controllocatariopf_cidade2.setEnabledOnEdit(true);

  Controllocatariopf_uf2.setAttributeName("locatariopf_uf2");
  Controllocatariopf_uf2.setDomainId("UF");
  Controllocatariopf_uf2.setLinkLabel(labellocatariopf_uf2);

  Controllocatariopf_cep2.setAttributeName("locatariopf_cep2");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

// Dados Patrimoniais

  Controllocatariopf_cep2.setAttributeName("locatariopf_automvel");
  Controllocatariopf_cep2.setMaxCharacters(20);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_modelo");
  Controllocatariopf_cep2.setMaxCharacters(20);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_placa");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_ano");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_automvel2");
  Controllocatariopf_cep2.setMaxCharacters(20);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_modelo2");
  Controllocatariopf_cep2.setMaxCharacters(20);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_placa2");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_cep2.setAttributeName("locatariopf_ano2");
  Controllocatariopf_cep2.setMaxCharacters(8);
  Controllocatariopf_cep2.setEnabledOnEdit(true);

  Controllocatariopf_especie.setAttributeName("locatariopf_especie");
  Controllocatariopf_especie.setDomainId("ESPECIEIMOVEL");
  Controllocatariopf_especie.setLinkLabel(labellocatariopf_especie);
  Controllocatariopf_especie.setRequired(true);

  Controllocatariopf_endereco3.setAttributeName("locatariopf_endereco3");
  Controllocatariopf_endereco3.setMaxCharacters(100);
  Controllocatariopf_endereco3.setEnabledOnEdit(true);

  Controllocatariopf_numero3.setAttributeName("locatariopf_numero3");
  Controllocatariopf_numero3.setMaxCharacters(10);
  Controllocatariopf_numero3.setEnabledOnEdit(true);

  Controllocatariopf_bairro3.setAttributeName("locatariopf_bairro3");
  Controllocatariopf_bairro3.setMaxCharacters(20);
  Controllocatariopf_bairro3.setEnabledOnEdit(true);

  Controllocatariopf_complemento3.setAttributeName("locatariopf_complemento3");
  Controllocatariopf_complemento3.setMaxCharacters(20);
  Controllocatariopf_complemento3.setEnabledOnEdit(true);

  Controllocatariopf_cidade3.setAttributeName("locatariopf_cidade3");
  Controllocatariopf_cidade3.setMaxCharacters(30);
  Controllocatariopf_cidade3.setEnabledOnEdit(true);

  Controllocatariopf_uf3.setAttributeName("locatariopf_uf3");
  Controllocatariopf_uf3.setDomainId("UF");
  Controllocatariopf_uf3.setLinkLabel(labellocatariopf_uf3);

  Controllocatariopf_cep3.setAttributeName("locatariopf_cep3");
  Controllocatariopf_cep3.setMaxCharacters(8);
  Controllocatariopf_cep3.setEnabledOnEdit(true);

  Controllocatariopf_endereco4.setAttributeName("locatariopf_endereco4");
  Controllocatariopf_endereco4.setMaxCharacters(100);
  Controllocatariopf_endereco4.setEnabledOnEdit(true);

  Controllocatariopf_numero4.setAttributeName("locatariopf_numero4");
  Controllocatariopf_numero4.setMaxCharacters(10);
  Controllocatariopf_numero4.setEnabledOnEdit(true);

  Controllocatariopf_bairro4.setAttributeName("locatariopf_bairro4");
  Controllocatariopf_bairro4.setMaxCharacters(20);
  Controllocatariopf_bairro4.setEnabledOnEdit(true);

  Controllocatariopf_complemento4.setAttributeName("locatariopf_complemento4");
  Controllocatariopf_complemento4.setMaxCharacters(20);
  Controllocatariopf_complemento4.setEnabledOnEdit(true);

  Controllocatariopf_cidade4.setAttributeName("locatariopf_cidade4");
  Controllocatariopf_cidade4.setMaxCharacters(30);
  Controllocatariopf_cidade4.setEnabledOnEdit(true);

  Controllocatariopf_uf4.setAttributeName("locatariopf_uf4");
  Controllocatariopf_uf4.setDomainId("UF");
  Controllocatariopf_uf4.setLinkLabel(labellocatariopf_uf);

  Controllocatariopf_cep4.setAttributeName("locatariopf_cep4");
  Controllocatariopf_cep4.setMaxCharacters(8);
  Controllocatariopf_cep4.setEnabledOnEdit(true);

// Referências

  Controllocatariopf_nomebanco.setAttributeName("locatariopf_nomebanco");
  Controllocatariopf_nomebanco.setMaxCharacters(20);
  Controllocatariopf_nomebanco.setEnabledOnEdit(true);

  Controllocatariopf_agencia.setAttributeName("locatariopf_agencia");
  Controllocatariopf_agencia.setMaxCharacters(8);
  Controllocatariopf_agencia.setEnabledOnEdit(true);

  Controllocatariopf_conta.setAttributeName("locatariopf_conta");
  Controllocatariopf_conta.setMaxCharacters(8);
  Controllocatariopf_conta.setEnabledOnEdit(true);

  Controllocatariopf_cartoescredito.setAttributeName("locatariopf_cartoescredito");
  Controllocatariopf_cartoescredito.setMaxCharacters(20);
  Controllocatariopf_cartoescredito.setEnabledOnEdit(true);

// Reservado a Empresa

  Controllocatariopf_spc.setAttributeName("locatariopf_spc");
  Controllocatariopf_spc.setEnabledOnEdit(true);

  Controllocatariopf_serasa.setAttributeName("locatariopf_serasa");
  Controllocatariopf_serasa.setEnabledOnEdit(true);

  Controllocatariopf_outros.setAttributeName("locatariopf_outros");
  Controllocatariopf_outros.setEnabledOnEdit(true);

  Controllocatariopf_passagem.setAttributeName("locatariopf_passagem");
  Controllocatariopf_passagem.setEnabledOnEdit(true);

  Controllocatariopf_registro.setAttributeName("locatariopf_registro");
  Controllocatariopf_registro.setEnabledOnEdit(true);

  Controllocatariopf_cheques.setAttributeName("locatariopf_cheques");
  Controllocatariopf_cheques.setEnabledOnEdit(true);

  Controllocatariopf_numerocheque.setAttributeName("locatariopf_numerocheque");
  Controllocatariopf_numerocheque.setEnabledOnEdit(true);

  Controllocatariopf_datas.setAttributeName("locatariopf_datas");
  Controllocatariopf_datas.setEnabledOnEdit(true);

  Controllocatariopf_corretor.setAttributeName("locatariopf_corretor");
  Controllocatariopf_corretor.setEnabledOnEdit(true);

  Controllocatariopf_confirmado.setAttributeName("locatariopf_confirmado");
  Controllocatariopf_confirmado.setDomainId("CONFIRMADO");
  Controllocatariopf_confirmado.setLinkLabel(labellocatariopf_confirmado);              
  Controllocatariopf_confirmado.setEnabledOnEdit(true);

  Controllocatariopf_referencias.setAttributeName("locatariopf_referencias");
  Controllocatariopf_referencias.setEnabledOnEdit(true);

  Controllocatariopf_pessoa.setAttributeName("locatariopf_pessoa");
  Controllocatariopf_pessoa.setEnabledOnEdit(true);

//

  this.getContentPane().add(buttonsPanel, BorderLayout.NORTH);
  buttonsPanel.add(insertButton, null);
  buttonsPanel.add(copyButton, null);
  buttonsPanel.add(editButton, null);
  buttonsPanel.add(reloadButton, null);
  buttonsPanel.add(saveButton, null);
  buttonsPanel.add(exportButton1, null);
  buttonsPanel.add(deleteButton, null);
  buttonsPanel.add(navigatorBar, null);
  buttonsPanel.add(editorTextoButton, null);

  imprimirOrdemServicoButton.setEnabled(true);
  editorTextoButton.setEnabled(true);

  headerFormPanel.setFormController(controller);
  headerFormPanel.setVOClassName("br.com.imobweb.vo.LocatarioPFVO");

  headerFormPanelProfissionais.setFormController(controller);
  headerFormPanelProfissionais.setVOClassName("br.com.imobweb.vo.LocatarioPFVO");

  this.getContentPane().add(mainPanel, BorderLayout.CENTER);

// OrcamentoDetailController orcamentoDetailController = new OrcamentoDetailController(conn, this.pk);
//orcamentoDetailController.frame.getMainPanel().reload();

// orcamentoFormPanel.add(OrcamentoDetailController.frame);
orcamentoHeaderPanel.add( orcamentoFormPanel, BorderLayout.CENTER);

  mainPanel.add(tabbedPane, BorderLayout.CENTER);    
  tabbedPane.add(headerPanel,              "1 - Dados  Pessoais");
  tabbedPane.add(headerPanelProfissionais, "2 - Dados Profissionais");
  tabbedPane.add(headerPanelPatrimoniais,  "3 - Informações Patrimoniais");
  tabbedPane.add(headerPanelReferencias,   "4 - Referências");
  tabbedPane.add(headerPanelReservado,     "5 - Reservado a Empresa");

  tabbedPane.setMnemonicAt(0,KeyEvent.VK_1);
  tabbedPane.setMnemonicAt(1,KeyEvent.VK_2);
  tabbedPane.setMnemonicAt(2,KeyEvent.VK_3);
  tabbedPane.setMnemonicAt(3,KeyEvent.VK_4);
  tabbedPane.setMnemonicAt(4,KeyEvent.VK_5);

  tabbedPane.addChangeListener(new ChangeListener() {
  public void stateChanged(ChangeEvent evt) {
    JTabbedPane pane = (JTabbedPane) evt.getSource();

    int sel = pane.getSelectedIndex();
       if (sel == 1) {

// OrcamentoDetailController.frame.getMainPanel().reload();
}
}
});

// headerPanel.add(headerButtonsPanel, BorderLayout.NORTH);
// headerButtonsPanel.setLayout(flowLayout1);
// flowLayout1.setAlignment(FlowLayout.LEFT);
// headerButtonsPanel.add(insertButton, null);
// headerButtonsPanel.add(editButton, null);
// headerButtonsPanel.add(saveButton, null);
// headerButtonsPanel.add(reloadButton, null);
// headerButtonsPanel.add(deleteButton, null);
// headerButtonsPanel.add(printButton, null);

// printButton.addActionListener(new OrdemServicoDetailFrame_printButton_actionAdapter(this));

// insertButton.addMouseListener(new MouseAdapter() {
//
// @Override
// public void mouseClicked(MouseEvent e) {
// String hoje = null;
// if (e.getClickCount() == 1) {
// try {
// hoje = data.getDataPostgres(conn);
// controldataOrdemServico.setText(hoje);
// } catch (ClassNotFoundException ex) {
// Logger.getLogger(OrdemServicoDetailFrame.class.getName()).log(Level.SEVERE, null, ex);
// } catch (SQLException ex) {
// Logger.getLogger(OrdemServicoDetailFrame.class.getName()).log(Level.SEVERE, null, ex);
// }
//
// }
// }
// });

  editButton.addMouseListener(new MouseAdapter() {

      @Override
      public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 1) {
              insertButton.setEnabled(false);
              deleteButton.setEnabled(false);
              saveButton.setEnabled(true);
          }
      }
  });

  reloadButton.addMouseListener(new MouseAdapter() {

      @Override
      public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 1) {
              headerFormPanel.reload();
          }
      }
  });

  editorTextoButton.addMouseListener(new MouseAdapter() {

      @Override
      public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 1) {
              if (editorTexto == null) {
                  editorTexto = new EditorTexto();
                  editorTexto.setVisible(true); //necessary as of 1.3
                  editorTexto.pack();
              } else {
                  editorTexto.setVisible(true);
              }
          }
      }
  });

  imprimirOrdemServicoButton.setToolTipText(ClientSettings.getInstance().getResources().getResource("print document"));
  editorTextoButton.setToolTipText(ClientSettings.getInstance().getResources().getResource("Editor de Texto"));
  //   imprimirOrdemServicoButton.addActionListener(new OrdemServicoDetailFrame_printButton_actionAdapter(this));
  headerPanel.setLayout(flowLayout1);
  headerPanel.add(headerFormPanel, BorderLayout.CENTER);
  headerFormPanel.setLayout(gridBagLayout1);
  headerFormPanel.addLinkedPanel(mainPanel);

  headerPanelProfissionais.setLayout(flowLayout1);
  headerPanelProfissionais.add(headerFormPanelProfissionais, BorderLayout.CENTER);
  headerFormPanelProfissionais.setLayout(gridBagLayout1);
  headerFormPanelProfissionais.addLinkedPanel(mainPanel);

  headerPanelPatrimoniais.setLayout(flowLayout1);
  headerPanelPatrimoniais.add(headerFormPanelPatrimoniais, BorderLayout.CENTER);
  headerFormPanelPatrimoniais.setLayout(gridBagLayout1);
  headerFormPanelPatrimoniais.addLinkedPanel(mainPanel);

  headerPanelReferencias.setLayout(flowLayout1);
  headerPanelReferencias.add(headerFormPanelReferencias, BorderLayout.CENTER);
  headerFormPanelReferencias.setLayout(gridBagLayout1);
  headerFormPanelReferencias.addLinkedPanel(mainPanel);

  headerPanelReservado.setLayout(flowLayout1);
  headerPanelReservado.add(headerFormPanelReservado, BorderLayout.CENTER);
  headerFormPanelReservado.setLayout(gridBagLayout1);
  headerFormPanelReservado.addLinkedPanel(mainPanel);

  p = new JPanel();
  p.setBorder(new EmptyBorder(10, 10, 10, 10));

// Dados Pessoais

// Linha 0
linhaTela1 = 0;
headerFormPanel.add(labellocatariopf_codigocliente, new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_codigocliente, new GridBagConstraints(1, linhaTela1, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanel.add(labellocatariopf_nome,           new GridBagConstraints(2, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_nome,              new GridBagConstraints(3, linhaTela1, 8, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 1
linhaTela1++;
headerFormPanel.add(labellocatariopf_sexo, new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_sexo, new GridBagConstraints(1, linhaTela1, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));

headerFormPanel.add(labellocatariopf_estadocivil,           new GridBagConstraints(2, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_estadocivil,              new GridBagConstraints(3, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 2
linhaTela1++;

headerFormPanel.add(labellocatariopf_datanasc,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_datanasc,              new GridBagConstraints(1, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_nacionalidade,           new GridBagConstraints(2, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_nacionalidade,              new GridBagConstraints(3, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_naturalidade,           new GridBagConstraints(4, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_naturalidade,              new GridBagConstraints(5, linhaTela1, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 3
linhaTela1++;

headerFormPanel.add(labellocatariopf_telefones,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_telefones,         new GridBagConstraints(1, linhaTela1, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 4
linhaTela1++;

headerFormPanel.add(labellocatariopf_nomepai,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_nomepai,              new GridBagConstraints(1, linhaTela1, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 5
linhaTela1++;

headerFormPanel.add(labellocatariopf_nomemae,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_nomemae,              new GridBagConstraints(1, linhaTela1, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 6
linhaTela1++;

headerFormPanel.add(labellocatariopf_cpf,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_cpf,              new GridBagConstraints(1, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_numerorg,           new GridBagConstraints(2, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_numerorg,              new GridBagConstraints(3, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_orgaoexpedorrg,           new GridBagConstraints(4, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_orgaoexpedorrg,              new GridBagConstraints(5, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 7
linhaTela1++;

headerFormPanel.add(labellocatariopf_conjuge,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_conjuge,              new GridBagConstraints(1, linhaTela1, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 8
linhaTela1++;

headerFormPanel.add(labellocatariopf_cpf2,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_cpf2,              new GridBagConstraints(1, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_numerorg2,           new GridBagConstraints(2, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_numerorg2,              new GridBagConstraints(3, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_orgaoexpedorrg2,           new GridBagConstraints(4, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_orgaoexpedorrg2,              new GridBagConstraints(5, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 9
linhaTela1++;

headerFormPanel.add(labellocatariopf_endereco,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_endereco,              new GridBagConstraints(1, linhaTela1, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));                  
headerFormPanel.add(labellocatariopf_numero,           new GridBagConstraints(6, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_numero,              new GridBagConstraints(7, linhaTela1, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 10
linhaTela1++;

headerFormPanel.add(labellocatariopf_bairro,           new GridBagConstraints(0, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_bairro,              new GridBagConstraints(1, linhaTela1, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_cidade,           new GridBagConstraints(3, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_cidade,              new GridBagConstraints(4, linhaTela1, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanel.add(labellocatariopf_cep,           new GridBagConstraints(6, linhaTela1, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanel.add(Controllocatariopf_cep,              new GridBagConstraints(7, linhaTela1, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanel.add(p, new GridBagConstraints(0, 12, 3, 2, 1.0, 1.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 0), 0, 0));

// Dados Profissionais

// Linha 0
linhaTela2 = 0;

headerFormPanelProfissionais.add(labellocatariopf_profissao,           new GridBagConstraints(0, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_profissao,              new GridBagConstraints(1, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelProfissionais.add(labellocatariopf_empresa,           new GridBagConstraints(3, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_empresa,              new GridBagConstraints(4, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelProfissionais.add(labellocatariopf_funcao,           new GridBagConstraints(6, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_funcao,              new GridBagConstraints(7, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 1
linhaTela2++;

headerFormPanelProfissionais.add(labellocatariopf_telefones2,           new GridBagConstraints(0, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_telefones2,              new GridBagConstraints(1, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelProfissionais.add(labellocatariopf_temposervico,           new GridBagConstraints(3, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_temposervico,              new GridBagConstraints(4, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelProfissionais.add(labellocatariopf_salario,           new GridBagConstraints(6, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_salario,              new GridBagConstraints(7, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 2
linhaTela2++;

headerFormPanelProfissionais.add(labellocatariopf_endereco2,           new GridBagConstraints(0, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_endereco2,              new GridBagConstraints(1, linhaTela2, 6, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));                  
headerFormPanelProfissionais.add(labellocatariopf_numero2,           new GridBagConstraints(7, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_numero2,              new GridBagConstraints(8, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 3
linhaTela2++;

headerFormPanelProfissionais.add(labellocatariopf_bairro2,           new GridBagConstraints(0, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_bairro2,              new GridBagConstraints(1, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelProfissionais.add(labellocatariopf_cidade2,           new GridBagConstraints(3, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_cidade2,              new GridBagConstraints(4, linhaTela2, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelProfissionais.add(labellocatariopf_cep2,           new GridBagConstraints(6, linhaTela2, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelProfissionais.add(Controllocatariopf_cep2,              new GridBagConstraints(7, linhaTela2, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelProfissionais.add(p, new GridBagConstraints(0, 12, 3, 2, 1.0, 1.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 0), 0, 0));

// Dados Patrimoniais

// Linha 0
linhaTela3 = 0;

headerFormPanelPatrimoniais.add(labellocatariopf_automovel,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_automovel,              new GridBagConstraints(1, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_modelo,           new GridBagConstraints(2, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_modelo,              new GridBagConstraints(3, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_placa,           new GridBagConstraints(4, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_placa,              new GridBagConstraints(5, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_ano,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_ano,              new GridBagConstraints(7, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 1
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_automovel2,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_automovel2,              new GridBagConstraints(1, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_modelo2,           new GridBagConstraints(2, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_modelo2,              new GridBagConstraints(3, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_placa2,           new GridBagConstraints(4, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_placa2,              new GridBagConstraints(5, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(labellocatariopf_ano2,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_ano2,              new GridBagConstraints(7, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 2
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_especie,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_especie,              new GridBagConstraints(1, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// lINHA 3
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_endereco3,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_endereco3,              new GridBagConstraints(1, linhaTela3, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));                  
headerFormPanelPatrimoniais.add(labellocatariopf_numero3,           new GridBagConstraints(7, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_numero3,              new GridBagConstraints(8, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 4
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_bairro3,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_bairro3,              new GridBagConstraints(1, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cidade3,           new GridBagConstraints(3, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cidade3,              new GridBagConstraints(4, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cep3,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cep3,              new GridBagConstraints(7, linhaTela3, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 5
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_especie,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_especie,              new GridBagConstraints(1, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 6
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_endereco3,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_endereco3,              new GridBagConstraints(1, linhaTela3, 6, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));                  
headerFormPanelPatrimoniais.add(labellocatariopf_numero3,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_numero3,              new GridBagConstraints(7, linhaTela3, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 7
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_bairro3,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_bairro3,              new GridBagConstraints(1, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cidade3,           new GridBagConstraints(3, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cidade3,              new GridBagConstraints(4, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cep3,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cep3,              new GridBagConstraints(7, linhaTela3, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

//Lionha 8
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_endereco4,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_endereco4,              new GridBagConstraints(1, linhaTela3, 6, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));                  
headerFormPanelPatrimoniais.add(labellocatariopf_numero4,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_numero4,              new GridBagConstraints(7, linhaTela3, 4, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0));

// Linha 9
linhaTela3++;

headerFormPanelPatrimoniais.add(labellocatariopf_bairro4,           new GridBagConstraints(0, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_bairro4,              new GridBagConstraints(1, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cidade4,           new GridBagConstraints(3, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cidade4,              new GridBagConstraints(4, linhaTela3, 2, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));
headerFormPanelPatrimoniais.add(labellocatariopf_cep4,           new GridBagConstraints(6, linhaTela3, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelPatrimoniais.add(Controllocatariopf_cep4,              new GridBagConstraints(7, linhaTela3, 3, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelPatrimoniais.add(p, new GridBagConstraints(0, 12, 3, 2, 1.0, 1.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 0), 0, 0));

// Dados Referenciais

// Linha 0
linhaTela4 = 0;

headerFormPanelReferencias.add(labellocatariopf_nomebanco,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReferencias.add(Controllocatariopf_nomebanco,              new GridBagConstraints(1, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelReferencias.add(labellocatariopf_agencia,           new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReferencias.add(Controllocatariopf_agencia,              new GridBagConstraints(4, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelReferencias.add(labellocatariopf_conta,           new GridBagConstraints(5, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReferencias.add(Controllocatariopf_conta,              new GridBagConstraints(6, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

headerFormPanelReferencias.add(labellocatariopf_cartoescredito,           new GridBagConstraints(7, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReferencias.add(Controllocatariopf_cartoescredito,              new GridBagConstraints(8, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Dados Reservado a Empresa

// Linha 0
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_spc,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_spc,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 1
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_serasa,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_serasa,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 2
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_outros,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_outros,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 4
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_passagem,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_passagem,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 5
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_registro,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_registro,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 6
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_numerocheque,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_numerocheque,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 7
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_datas,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_datas,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 8
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_corretor,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_corretor,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

// Linha 9
linhaTela4++;

headerFormPanelReservado.add(labellocatariopf_confirmado,           new GridBagConstraints(0, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
headerFormPanelReservado.add(Controllocatariopf_confirmado,              new GridBagConstraints(3, linhaTela4, 1, 1, 0.0, 0.0
        ,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0));

  bensMoveis = new TitledBorder("");

// bensImoveis = new TitledBorder("");
//
// bensMoveis.setTitle("Bens Móveis");
// bensMoveis.setTitleColor(Color.blue);
// headerBensMoveis.setBorder(bensMoveis);
//
// bensImoveis.setTitle("Bens Imóveis");
// bensImoveis.setTitleColor(Color.blue);
// headerBensImoveis.setBorder(bensImoveis);
//
//
// headerFormPanelPatrimoniais.add(headerBensMoveis, BorderLayout.CENTER);
// headerFormPanelPatrimoniais.add(headerBensImoveis, BorderLayout.SOUTH);
//
// headerPanelPatrimoniais.setLayout(borderLayout1);
// headerPanelPatrimoniais.add(headerFormPanelPatrimoniais, BorderLayout.CENTER);
//
// headerPanelPatrimoniais.add(headerBensMoveis, BorderLayout.NORTH);
// headerPanelPatrimoniais.add(headerBensImoveis, BorderLayout.SOUTH);
// headerFormPanelPatrimoniais.setLayout(gridBagLayout1);
// headerFormPanelPatrimoniais.addLinkedPanel(mainPanel);

}

public void processFocusEvent(FocusEvent e) {
super.processFocusEvent(e);
if (e.getID()==e.FOCUS_GAINED) {
;
}
}

public Form getMainPanel() {
return mainPanel;
}

public SaveButton getSaveButton() {
return saveButton;
}

public DeleteButton getDeleteButton() {
return deleteButton;
}

public EditButton getEditButton() {
return editButton;
}

public CurrencyControl getControlCurrency() {
return controlCurrency;
}

public GridControl getGrid() {
return grid;
}

public void setEnableGridButtons(boolean enabled) {
if (enabled) {
editButton1.setEnabled(enabled);
reloadButton1.setEnabled(enabled);
insertButton.setEnabled(true);
editButton.setEnabled(true);
saveButton.setEnabled(false);
deleteButton.setEnabled(true);
}
else {
editButton1.setEnabled(enabled);
saveButton1.setEnabled(enabled);
reloadButton1.setEnabled(enabled);
}
imprimirOrdemServicoButton.setEnabled(true);
printButton.setEnabled(true);
}

I need this component of the first outbreak:

Controllocatariopf_codigocliente.setAttributeName("locatariopf_codigo");

Thank you very much

Silvio Guedes
The more oreiental point of the Americas