@@ -5,32 +5,34 @@ This project provides a datetime picker component that can be easily integrated
5
5
6
6
<img src =" https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/timepicker-dark.png " alt =" timepicker dark " width =" 300 " />  ;
7
7
<img src =" https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/timepicker-light.png " alt =" timepicker light " width =" 300 " />
8
-
8
+ <br />
9
+ <img src =" https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/datepicker-dark.png " alt =" datepicker dark " width =" 300 " />  ;
10
+ <img src =" https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/datepicker-light.png " alt =" datepicker light " width =" 300 " />
9
11
## Installation
10
12
This project library do not available in maven central. so you can install with the jar library
11
- - Copy jar library file to the root project. exp : ` library/swing-datetime-picker-1.0 .0.jar `
13
+ - Copy jar library file to the root project. exp : ` library/swing-datetime-picker-1.1 .0.jar `
12
14
- Add this code to ` pom.xml `
13
15
``` xml
14
16
<dependency >
15
17
<groupId >raven.datetime</groupId >
16
18
<artifactId >swing-datetime-picker</artifactId >
17
- <version >1.0 .0</version >
19
+ <version >1.1 .0</version >
18
20
<scope >system</scope >
19
- <systemPath >${basedir}/library/swing-datetime-picker-1.0 .0.jar</systemPath >
21
+ <systemPath >${basedir}/library/swing-datetime-picker-1.1 .0.jar</systemPath >
20
22
</dependency >
21
23
```
22
24
- Other library are use with this library
23
25
``` xml
24
26
<dependency >
25
27
<groupId >com.formdev</groupId >
26
28
<artifactId >flatlaf</artifactId >
27
- <version >3.2.5 </version >
29
+ <version >3.4.1 </version >
28
30
</dependency >
29
31
30
32
<dependency >
31
33
<groupId >com.formdev</groupId >
32
34
<artifactId >flatlaf-extras</artifactId >
33
- <version >3.2.5 </version >
35
+ <version >3.4.1 </version >
34
36
</dependency >
35
37
36
38
<dependency >
@@ -46,8 +48,8 @@ This project library do not available in maven central. so you can install with
46
48
| setSelectedTime(LocalTime time) | ` void ` | set the time to a specific value |
47
49
| clearSelectedTime() | ` void ` | clear the selected time |
48
50
| isTimeSelected() | ` boolean ` | check time is selected |
49
- | getSelectedTime() | ` LocalTime ` | get the selected time |
50
- | getSelectedTimeAsString() | ` String ` | get selected time as string |
51
+ | getSelectedTime() | ` LocalTime ` | return the selected time |
52
+ | getSelectedTimeAsString() | ` String ` | return selected time as string |
51
53
| addTimeSelectionListener(TimeSelectionListener event) | ` void ` | add event time selection |
52
54
| removeTimeSelectionListener(TimeSelectionListener event) | ` void ` | remove event time selection |
53
55
| removeAllTimeSelectionListener() | ` void ` | remove all event tiem selection |
@@ -56,10 +58,37 @@ This project library do not available in maven central. so you can install with
56
58
| set24HourView(boolean hour24) | ` void ` | set time to 24h selection view |
57
59
| is24HourView() | ` boolean ` | return ` ture ` is 24h selection view |
58
60
| showPopup() | ` void ` | if time have editor, timepicker will show up with popup menu |
61
+ | closePopup() | ` void ` | close editor popup |
59
62
60
63
61
64
## Usage DatePicker
62
- - Next Coming
65
+ | Method | Return Value | Description |
66
+ | ------------ | ------------ | ------------ |
67
+ | now() | ` void ` | set the date to current local date |
68
+ | setToBack() | ` void ` | slide panel to back with animation |
69
+ | setToForward() | ` void ` | slide panel to forward with animation |
70
+ | selectMonth() | ` void ` | show panel month slide with animation |
71
+ | selectYear() | ` void ` | show panel year slide with animation |
72
+ | slideTo(LocalDate date) | ` void ` | slide panel to specific date |
73
+ | getDateSelectionMode() | ` DateSelectionMode ` | return the date selectionmode |
74
+ | setDateSelectionMode(DateSelectionMode mode) | ` void ` | set mode ` SINGLE_DATE_SELECTED ` or ` BETWEEN_DATE_SELECTED ` |
75
+ | setSelectedDate(LocalDate date) | ` void ` | set the date to a specific value |
76
+ | setSelectedDateRange(LocalDate from, LocalDate to) | ` void ` | set the date range to a specific value |
77
+ | setEditor(JFormattedTextField editor) | ` void ` | disply the selected date on the editor and allow to edit date |
78
+ | setDateSelectionAble(DateSelectionAble dsb) | ` void ` | set date selectionable |
79
+ | showPopup() | ` void ` | if date have editor, datepicker will show up with popup menu |
80
+ | closePopup() | ` void ` | close editor popup |
81
+ | setSeparator(String separator) | ` void ` | set separator to between date |
82
+ | setUsePanelOption(boolean usePanelOption) | ` void ` | set datepicker use panel option |
83
+ | setCloseAfterSelected(boolean closeAfterSelected) | ` void ` | if true popup will close after selected date |
84
+ | clearSelectedDate() | ` void ` | clear the selected date |
85
+ | isDateSelected() | ` boolean ` | check date is selected |
86
+ | getSelectedDate() | ` LocalDate ` | return the selected date |
87
+ | getSelectedDateRange() | ` LocalDate[] ` | return the selected date range |
88
+ | getSelectedDateAsString() | ` String ` | return selected date as string |
89
+ | addDateSelectionListener(DateSelectionListener event) | ` void ` | add event date selection |
90
+ | removeDateSelectionListener(DateSelectionListener event) | ` void ` | remove event date selection |
91
+ | removeAllDateSelectionListener() | ` void ` | remove all event date selection |
63
92
64
93
## Library Resources
65
94
- [ FlatLaf] ( https://github.com/JFormDesigner/FlatLaf ) - FlatLaf library for the modern UI design theme
0 commit comments