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();
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();
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;
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();
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;
// mainPanel.setFormController(dataController);
// 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));
// 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);
}
private void jbInit() throws Exception {
// OrcamentoPanel orcamentoHeaderPanel = new OrcamentoPanel(conn, this);
// headerFormPanel.setEnabled(false);
// titledBorder1.setTitle("Title");
titledBorder1.setTitleColor(Color.blue);
// atribuição dos labels
// atribuição dos conmtroles
// Dados Pessoais
// Dados Profissionais
// Dados Patrimoniais
// Referências
// Reservado a Empresa
//
// OrcamentoDetailController orcamentoDetailController = new OrcamentoDetailController(conn, this.pk);
//orcamentoDetailController.frame.getMainPanel().reload();
// orcamentoFormPanel.add(OrcamentoDetailController.frame);
orcamentoHeaderPanel.add( orcamentoFormPanel, BorderLayout.CENTER);
// 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);
// }
//
// }
// }
// });
// 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));
// 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));
// Linha 2
linhaTela1++;
// Linha 3
linhaTela1++;
// Linha 4
linhaTela1++;
// Linha 5
linhaTela1++;
// Linha 6
linhaTela1++;
// Linha 7
linhaTela1++;
// Linha 8
linhaTela1++;
// Linha 9
linhaTela1++;
// Linha 10
linhaTela1++;
// Dados Profissionais
// Linha 0
linhaTela2 = 0;
// Linha 1
linhaTela2++;
// Linha 2
linhaTela2++;
// Linha 3
linhaTela2++;
// Dados Patrimoniais
// Linha 0
linhaTela3 = 0;
// Linha 1
linhaTela3++;
// Linha 2
linhaTela3++;
// lINHA 3
linhaTela3++;
// Linha 4
linhaTela3++;
// Linha 5
linhaTela3++;
// Linha 6
linhaTela3++;
// Linha 7
linhaTela3++;
//Lionha 8
linhaTela3++;
// Linha 9
linhaTela3++;
// Dados Referenciais
// Linha 0
linhaTela4 = 0;
// Dados Reservado a Empresa
// Linha 0
linhaTela4++;
// Linha 1
linhaTela4++;
// Linha 2
linhaTela4++;
// Linha 4
linhaTela4++;
// Linha 5
linhaTela4++;
// Linha 6
linhaTela4++;
// Linha 7
linhaTela4++;
// Linha 8
linhaTela4++;
// Linha 9
linhaTela4++;
// 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