Hi !
I have JTable like below. In the column 1 and 2 user would input a date.
Now, I want to have date picker ie [ Calenlandar pop up ] to enable the user to pick the date.
Any help ?
By the way I tried http://www.toedter.com/en/jcalendar/index.html . I need help in integrating with JTable.
Thanks.
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null}
},
new String [] {
"Type of Env", "Start Date", "End Date", "Duration in weeks", "No.of patches", "No.of fresh installation", "No.of upgrades"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane1.setViewportView(jTable1);