/*
* Calendario.java
*
* Created on 25 de Julio de 2005, 11:02 AM
*/
//package codesolocodigo;
/**
*
* @author Antony
*/
public class Calendario extends javax.swing.JFrame {
/** Creates new form Calendario */
public Calendario() {
initComponents();
this.setSize(400,400);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jDCalendario = new com.toedter.calendar.JDateChooser();
jBVerFecha = new javax.swing.JButton();
jLFecha = new javax.swing.JLabel();
getContentPane().setLayout(null);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().add(jDCalendario);
jDCalendario.setBounds(40, 10, 155, 22);
jBVerFecha.setText("Ver Fecha");
jBVerFecha.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jBVerFechaActionPerformed(evt);
}
});
getContentPane().add(jBVerFecha);
jBVerFecha.setBounds(40, 40, 130, 25);
jLFecha.setText("Al dar clic saldr\u00e1 la fecha que seleccion\u00f3");
getContentPane().add(jLFecha);
jLFecha.setBounds(40, 80, 310, 20);
pack();
}
private void jBVerFechaActionPerformed(java.awt.event.ActionEvent evt){ this.jLFecha.setText(String.valueOf(this.jDCalendario.getDate()));
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Calendario().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jBVerFecha;
private com.toedter.calendar.JDateChooser jDCalendario;
private javax.swing.JLabel jLFecha;
// End of variables declaration//GEN-END:variables
}