Jcalendario em java

Propaganda
package gerenciador;
import
import
import
import
import
import
javax.swing.JPanel;
java.awt.Cursor;
java.awt.Frame;
javax.swing.JDialog;
org.freixas.jcalendar.JCalendar;
java.awt.Rectangle;
public class Jcalendario extends JDialog {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JCalendar jCalendarMes = null;
public Jcalendario(Frame owner) {
super(owner);
initialize();
}
private void initialize() {
this.setSize(517, 278);
this.setTitle("Calendário");
this.setContentPane(getJContentPane());
// Tamanho fixo do programa, sem alteção
this.setResizable(false);
// Deixa o programa no meio da tela, centralizado
this.setLocationRelativeTo(null);
this.setContentPane(getJContentPane());
//this.setModal(true);
}
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getJCalendarMes(), null);
}
return jContentPane;
}
private JCalendar getJCalendarMes() {
if (jCalendarMes == null) {
jCalendarMes = new JCalendar();
jCalendarMes.setBounds(new Rectangle(4, 1, 505, 249));
jCalendarMes.setToolTipText("Calendário");
jCalendarMes.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
return jCalendarMes;
}
} // @jve:decl-index=0:visual-constraint="10,10"
Download