|
|
@ -39,6 +39,7 @@ public class JDateDocument extends PlainDocument{ |
|
|
|
setDateFormat(dateFormat); |
|
|
|
setDateFormat(dateFormat); |
|
|
|
//保存操作的文本框
|
|
|
|
//保存操作的文本框
|
|
|
|
textComponent = tc; |
|
|
|
textComponent = tc; |
|
|
|
|
|
|
|
//设置显示为当前日期,同时完成显示的格式化
|
|
|
|
try{ |
|
|
|
try{ |
|
|
|
insertString(0, initDateTime, null); |
|
|
|
insertString(0, initDateTime, null); |
|
|
|
} catch(BadLocationException ex){ |
|
|
|
} catch(BadLocationException ex){ |
|
|
|