Problem with DateTime in Java

I used Swt DateTime . But the problem is that we cannot send a null value through it. he is always announced. So I used nebulla dateChooserCombo . it's good, and I can send null too. But I ran into a problem which, unlike Swt DateTime is really difficult s witch form one year to another . We must move every month in it. We can explicitly enter the date through DateChoosercombo , but the user may not know the date Pattern , so it can be difficult for them. Is there a solution for this problem. Please suggest me? Is there a way to input null through swt DateTime?

+4
source share
2 answers

You can then add a checkbox that will enable or disable DateTime widget, and let the user decide whether he / she wants to determine the date or not.

+2
source

but the user may not know the date template, so it may be difficult for them

So tell them the template (for example, in Label or in the tooltip for DateChooserCombo ).

Is there a way to input a Null value via swt DateTime?

No.

+1
source

Source: https://habr.com/ru/post/1368910/


All Articles