Java Swing JXDatePicker

前端 未结 5 543
执笔经年
执笔经年 2020-12-11 06:15

I\'m using SwingX JXDatePicker and I can\'t figure out how to provide next/previous year buttons (as by default it only provides next/previous month buttons).

Also,

5条回答
  •  情书的邮戳
    2020-12-11 07:01

    The lack of built-in previous/next year buttons in JXDatePicker is the main reason I did not end up using that package for my software. Otherwise, it's one of the better date pickers that is out there.

    As an alternative, I'd recommend LGoodDatePicker. It has buttons for going back and forward on the year, plus a menu for selecting any desired year. Fair disclosure: I'm the primary developer on this project. Please let me know if it serves your needs.

    LGoodDatePicker home page: https://github.com/LGoodDatePicker/LGoodDatePicker

    There is a working demo (an executable jar file) in the release section, and a list of core features on the gitub page.

    Screenshots are below.

提交回复
热议问题