Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.JXDatePicker


    oficinaCheck.setSelected(visita.getMotivo().getOficina());

    outroCheck = new JCheckBox("Outros");
    outroCheck.setSelected(visita.getMotivo().getOutro());

    dataInicioField = new JXDatePicker(visita.getDataInicio().getTime());
    dataFimField = new JXDatePicker();
    dataFimField.setDate(visita.getDataFim());

    dataInicioField.setFormats(new String[] {"dd/MM/yyyy hh:mm"});
    dataFimField.setFormats(new String[] {"dd/MM/yyyy hh:mm"});
   
View Full Code Here


        // TODO Auto-generated method stub
      }
        });
        rendaFamiliarCombo.setSelectedIndex(usuario.getRendaFamiliar());
       
        dataNascimentoField  = new JXDatePicker(usuario.getDataNascimento().getTime());
        dataNascimentoField.setFormats(new String[] {"dd/MM/yyyy"});

        //Endereco
      logradouroField  = new JTextField(usuario.getEndereco().getLogradouro());
      numeroField  = new JTextField(usuario.getEndereco().getNumero());
View Full Code Here

  public void testVerifier() {
   
    InputVerifier verifier = new JXDatePickerInputVerifier();

    //Data V�lida
    JXDatePicker picker = new JXDatePicker();
    picker.setInputVerifier(verifier);
    assertTrue(picker.getInputVerifier().shouldYieldFocus(picker));

    //Data Inv�lida
    Calendar calendar = Calendar.getInstance();
    calendar.set(10000, 12, 31);
    picker = new JXDatePicker(calendar.getTimeInMillis());
    picker.setInputVerifier(verifier);
    assertFalse(picker.getInputVerifier().shouldYieldFocus(picker));
  }
View Full Code Here

    }
  }

  @Override
  protected void initComponents() {
    datePickerInicial = new JXDatePicker(dataInicial.getTime());
    datePickerInicial.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerInicial.setVisible(false);
    labelPickerInicial = new JLabel("Data Inicial:");
    labelPickerInicial.setVisible(false);
    datePickerFinal = new JXDatePicker(dataFinal.getTime());
    datePickerFinal.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerFinal.setVisible(false);
    labelPickerFinal = new JLabel("Data Final:");
    labelPickerFinal.setVisible(false);
    relatorioPanel = new JPanel(new BorderLayout());
View Full Code Here

    getMainPanel().setBorder(null)
  }

  @Override
  protected void initComponents() {
    datePickerInicial = new JXDatePicker(dataInicial.getTime());
    datePickerInicial.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerFinal = new JXDatePicker(dataFinal.getTime());
    datePickerFinal.setFormats(new String[] {"EEE dd/MM/yyyy"});
    relatorioPanel = new JPanel(new BorderLayout());
  }
View Full Code Here

    assertNotNull(picker);
  }
 
  public void testDatePickerVerifier() {
    //Data V�lida
    JXDatePicker picker = new DatePicker();
    assertTrue(picker.getInputVerifier().shouldYieldFocus(picker));

    //Data Inv�lida
    Calendar calendar = Calendar.getInstance();
    calendar.set(10000, 12, 31);
    picker = new DatePicker(calendar.getTimeInMillis());
    assertFalse(picker.getInputVerifier().shouldYieldFocus(picker));
  }
View Full Code Here

  protected void initComponents() {

    nomeField = new JTextField();

    datePickerInicial = new JXDatePicker(new Date().getTime());
    datePickerInicial.setFormats(new String[] { "EEE dd/MM/yyyy" });
    labelPickerInicial = new JLabel("Data Inicial:");
    datePickerFinal = new JXDatePicker(new Date().getTime());
    datePickerFinal.setFormats(new String[] { "EEE dd/MM/yyyy" });
    labelPickerFinal = new JLabel("Data Final:");
  }
View Full Code Here

    }
  }

  @Override
  protected void initComponents() {
    datePickerInicial = new JXDatePicker(dataInicial.getTime());
    datePickerInicial.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerInicial.setVisible(false);
    labelPickerInicial = new JLabel("Data Inicial:");
    labelPickerInicial.setVisible(false);
    datePickerFinal = new JXDatePicker(dataFinal.getTime());
    datePickerFinal.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerFinal.setVisible(false);
    labelPickerFinal = new JLabel("Data Final:");
    labelPickerFinal.setVisible(false);
    relatorioPanel = new JPanel(new BorderLayout());
View Full Code Here

    getMainPanel().setBorder(null)
  }

  @Override
  protected void initComponents() {
    datePickerInicial = new JXDatePicker(dataInicial.getTime());
    datePickerInicial.setFormats(new String[] {"EEE dd/MM/yyyy"});
    datePickerFinal = new JXDatePicker(dataFinal.getTime());
    datePickerFinal.setFormats(new String[] {"EEE dd/MM/yyyy"});
    relatorioPanel = new JPanel(new BorderLayout());
  }
View Full Code Here

    oficinaCheck.setSelected(visita.getMotivo().getOficina());

    outroCheck = new JCheckBox("Outros");
    outroCheck.setSelected(visita.getMotivo().getOutro());

    dataInicioField = new JXDatePicker(visita.getDataInicio().getTime());
    dataFimField = new JXDatePicker();
    dataFimField.setDate(visita.getDataFim());

    dataInicioField.setFormats(new String[] { "dd/MM/yyyy HH:mm" });
    dataFimField.setFormats(new String[] { "dd/MM/yyyy HH:mm" });
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.JXDatePicker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.