From 2b3360f123c731c7fc91c6036db3147f135abdb7 Mon Sep 17 00:00:00 2001 From: Raven Laing <58245926+DJ-Raven@users.noreply.github.com> Date: Mon, 6 May 2024 22:49:02 +0700 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 181bbfd..de04b6e 100644 --- a/README.md +++ b/README.md @@ -10,15 +10,15 @@ This project provides a datetime picker component that can be easily integrated datepicker light ## Installation This project library do not available in maven central. so you can install with the jar library -- Copy jar library file to the root project. exp : `library/swing-datetime-picker-1.1.1.jar` +- Copy jar library file to the root project. exp : `library/swing-datetime-picker-1.2.0.jar` - Add this code to `pom.xml` ``` xml raven.datetime swing-datetime-picker - 1.1.1 + 1.2.0 system - ${basedir}/library/swing-datetime-picker-1.1.1.jar + ${basedir}/library/swing-datetime-picker-1.2.0.jar ``` - Other library are use with this library @@ -59,6 +59,8 @@ This project library do not available in maven central. so you can install with | is24HourView() | `boolean` | return `ture` is 24h selection view | | showPopup() | `void` | if time have editor, timepicker will show up with popup menu | | closePopup() | `void` | close editor popup | +| setColor(Color color) | `void` | change base color | +| setEditorIcon(Icon icon) | `void` | change icon to editor | ## Usage DatePicker @@ -89,6 +91,9 @@ This project library do not available in maven central. so you can install with | addDateSelectionListener(DateSelectionListener event) | `void` | add event date selection | | removeDateSelectionListener(DateSelectionListener event) | `void` | remove event date selection | | removeAllDateSelectionListener() | `void` | remove all event date selection | +| selectCurrentMonth() | `void` | select from first day to current day in current month | +| setEditorIcon(Icon icon) | `void` | change icon to editor | + ## Library Resources - [FlatLaf](https://github.com/JFormDesigner/FlatLaf) - FlatLaf library for the modern UI design theme