想问一下如何将文本字段与JDateChooser
进行比较?
if ((JTextField)jDateChooser1.getDateEditor().getUiComponent()).getText() < txtdate) {
JOptionPane.showMessageDialog(null, "Cant choose a date that is more previous >than the present date!");
} else {
JOptionPane.showMessageDialog(null, "Book Successfully Borrowed!");
}