0
JDatePickerから日付を取得しようとしていますが、結果のテキストボックスに表示されていない日付を選択していますが、問題が発生します。 ここに私のコードです 誰もこの問題を解決する方法を助けることができます。Java-JDatePickerで何も表示されない
public class Datepicker extends JFrame {Datepicker(){
JFrame frame=new JFrame();
frame.setLayout(new FlowLayout());
UtilDateModel model=new UtilDateModel();
Properties p=new Properties();
p.put("text.today","Today");
p.put("text.month","Month");
p.put("text.year","Year");
JDatePanelImpl panel=new JDatePanelImpl(model, p);
JDatePickerImpl datepic=new JDatePickerImpl(panel,null);
datepic.setBounds(220,350,120,30);
frame.add(datepic);
Date selectedDate=(Date)datepic.getModel().getValue();
frame.setSize(300, 300);
frame.setVisible(true);}
ありがとうございます。代わりに JDatePickerImpl datepic=new JDatePickerImpl(panel,null);
の