Which one is the best Java datepicker..?

前端 未结 4 1887
天命终不由人
天命终不由人 2020-12-20 22:09

I need a well done gui swing java datechooser.. I only find some ugly datepickers from 199x

does somebody know a nice gui datepicker?

相关标签:
4条回答
  • 2020-12-20 23:02

    Check JDatePicker its also good. In JXDatePicker there is no year changing option.

    Check example of JDatePicker http://www.codejava.net/java-se/swing/how-to-use-jdatepicker-to-display-calendar-component

    0 讨论(0)
  • 2020-12-20 23:03


    I have used several date choosers, and I would recommend LGoodDatePicker.
    Other common libraries are: JXDatePicker, Microba DatePicker, JDatePicker, and JCalendar.

    Fair disclosure: I'm the primary LGoodDatePicker developer.

    LGoodDatePicker general features list:
    (Copied from the project page)

    • The components are the DatePicker, TimePicker, DateTimePicker, and CalendarPanel.
    • Automatic localization (internationalization), to 22 languages.
      (Arabic, Chinese, Czech, Danish, Dutch, English, French, German, Greek, Hindi, Italian, Indonesian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish, Vietnamese.)
    • Natively uses the standard Java 8 time package (aka java.time.LocalDate or "JSR-310").
    • Also supports other data types, such as "java.util.Date".
    • Customizable visual elements. (Including calendar size, fonts, colors, and the popup border.)
    • The TimePicker GUI provides a time selection list and (optional) spinner buttons.
    • Automatic date/time validation on all components.
    • Optional highlight policies and veto policies.
    • Can allow or disallow empty values. (Null dates or times.)
    • Simple usage. Creating a picker requires only one line of code.
    • Includes the Demo Program, and code examples.
    • Complete Javadoc documentation.
    • Active developer support.
    • Open source MIT license.

    I pasted screenshots of the components (and the demo program) below.

    The library can be installed into your Java project from the project release page.

    The project home page is on Github at:
    https://github.com/LGoodDatePicker/LGoodDatePicker .


    DateTimePicker screenshot


    DateTimePicker examples


    Demo screenshot

    0 讨论(0)
  • 2020-12-20 23:05

    SwingLabs has SwingX project which provides suite of components including JXDatePicker (API) works with Date class, which supports dates starting from January 1, 1970, 00:00:00 GMT.

    Try demo, as an option. Not 199x and not ugly. Widely supported and used.

    0 讨论(0)
  • 2020-12-20 23:15

    Maybe you want to try JCalendar.

    0 讨论(0)
提交回复
热议问题