Skip to content

Commit 2094fb4

Browse files
committed
2 parents 9501947 + 5edb355 commit 2094fb4

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

README.md

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,34 @@ This project provides a datetime picker component that can be easily integrated
55

66
<img src="https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/timepicker-dark.png" alt="timepicker dark" width="300"/>&nbsp;
77
<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"/>&nbsp;
10+
<img src="https://github.com/DJ-Raven/swing-datetime-picker/blob/main/screenshot/datepicker-light.png" alt="datepicker light" width="300"/>
911
## Installation
1012
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`
1214
- Add this code to `pom.xml`
1315
``` xml
1416
<dependency>
1517
<groupId>raven.datetime</groupId>
1618
<artifactId>swing-datetime-picker</artifactId>
17-
<version>1.0.0</version>
19+
<version>1.1.0</version>
1820
<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>
2022
</dependency>
2123
```
2224
- Other library are use with this library
2325
``` xml
2426
<dependency>
2527
<groupId>com.formdev</groupId>
2628
<artifactId>flatlaf</artifactId>
27-
<version>3.2.5</version>
29+
<version>3.4.1</version>
2830
</dependency>
2931

3032
<dependency>
3133
<groupId>com.formdev</groupId>
3234
<artifactId>flatlaf-extras</artifactId>
33-
<version>3.2.5</version>
35+
<version>3.4.1</version>
3436
</dependency>
3537

3638
<dependency>
@@ -46,8 +48,8 @@ This project library do not available in maven central. so you can install with
4648
| setSelectedTime(LocalTime time) | `void` | set the time to a specific value |
4749
| clearSelectedTime() | `void` | clear the selected time |
4850
| 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 |
5153
| addTimeSelectionListener(TimeSelectionListener event) | `void` | add event time selection |
5254
| removeTimeSelectionListener(TimeSelectionListener event) | `void` | remove event time selection |
5355
| 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
5658
| set24HourView(boolean hour24) | `void` | set time to 24h selection view |
5759
| is24HourView() | `boolean` | return `ture` is 24h selection view |
5860
| showPopup() | `void` | if time have editor, timepicker will show up with popup menu |
61+
| closePopup() | `void` | close editor popup |
5962

6063

6164
## 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 |
6392

6493
## Library Resources
6594
- [FlatLaf](https://github.com/JFormDesigner/FlatLaf) - FlatLaf library for the modern UI design theme

0 commit comments

Comments
 (0)