io.loli.datepicker4j

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Группа

Группа

io.loli
Идентификатор

Идентификатор

datepicker4j
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

io.loli.datepicker4j
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

Ссылка на сайт

https://github.com/chocotan/datepicker4j
Система контроля версий

Система контроля версий

https://github.com/chocotan/datepicker4j.git

Скачать datepicker4j

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.loli/datepicker4j/ -->
<dependency>
    <groupId>io.loli</groupId>
    <artifactId>datepicker4j</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/io.loli/datepicker4j/
implementation 'io.loli:datepicker4j:0.0.5'
// https://jarcasting.com/artifacts/io.loli/datepicker4j/
implementation ("io.loli:datepicker4j:0.0.5")
'io.loli:datepicker4j:jar:0.0.5'
<dependency org="io.loli" name="datepicker4j" rev="0.0.5">
  <artifact name="datepicker4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.loli', module='datepicker4j', version='0.0.5')
)
libraryDependencies += "io.loli" % "datepicker4j" % "0.0.5"
[io.loli/datepicker4j "0.0.5"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

datepicker4j

Date picker for java swing

Maven Central Maven Central

###Maven

<dependency>
  <groupId>io.loli</groupId>
  <artifactId>datepicker4j</artifactId>
  <version>0.0.5</version>
</dependency>

###Usage

JTextField field = new JTextField();
DatePicker.datePicker(field);
// DatePicker.datePicker(field, "yyyy-MM-dd");

###Example

####Date Picker

JFrame frame = new JFrame();
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextField field = new JTextField();
DatePicker.datePicker(field);
frame.add(field);
frame.pack();

####Make SUN&SAT unclickable

DatePicker.datePicker(field, "yyyy-MM-dd", new BasicDateFilter() {
    public boolean filter(Date date) {
        return date.getDay() == 0 || date.getDay() == 6;
    }
});

###Time Picker

JTextField field = new JTextField();
DatePicker.timePicker(field);
// DatePicker.timePicker(field, "HH:mm");

###Datetime Picker

JTextField field = new JTextField();
DatePicker.dateTimePicker(field);
// DatePicker.timePicker(field, "yyyy-MM-dd HH:mm");

###Screenshot DEMO1

DEMO2

DEMO3

Версии библиотеки

Версия
0.0.5
0.0.4
0.0.2
0.0.1