Results 1 to 10 of 10

Thread: Looking for a date AND time picker

  1. #1
    WWJ Consultant patmurris's Avatar
    Join Date
    Jun 2005
    Location
    Saint-Paul de Vence, Alpes Maritimes, France
    Posts
    3,383

    Default Looking for a date AND time picker

    Any hint on this?

    Do any of you know of a java date AND time picker for Swing (or even just a time picker)? I see the JXDatePicker in SwingX, and talk of a JXDateTimePicker, but nothing actually implemented now. I’m looking for a free, non-licensed component.
    My World Wind Java Blog & WW.net Plugins page

  2. #2

    Default

    I (and the rest of the planet) have the same question in some moment of our lives

    Some time ago I take a look but I didn't find any good and free library. Finally I was decided to create my own panel using JXMonthView (http://www.javalobby.org/java/forums/t45447.html) and three spinners for hour/minute/second. It's not great but it's an easy and decent solution.

    I attach a screenshot. I don't attach the code because I was developed for NetBeans RCP and uses some specific classes of NetBeans platform.
    Attached Images Attached Images
    |---------------------------------------
    | http://www.acuriousanimal.com/
    |---------------------------------------
    | http://theballoonproject.blogspot.com
    |---------------------------------------
    | _ __
    | /_| ( _ _/'_ _
    |( |. __)(//)//(/(/()
    | _/
    |---------------------------------------

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Posts
    10

    Default

    How about something like this?

    https://jcalendar.dev.java.net/

    You can download the source at the bottom of the page.

  4. #4

    Default

    Hello Griff

    i don't take a depth look, it seems very cool but doesn't allow time picker.
    |---------------------------------------
    | http://www.acuriousanimal.com/
    |---------------------------------------
    | http://theballoonproject.blogspot.com
    |---------------------------------------
    | _ __
    | /_| ( _ _/'_ _
    |( |. __)(//)//(/(/()
    | _/
    |---------------------------------------

  5. #5
    Junior Member
    Join Date
    Dec 2007
    Posts
    10

    Default

    Quote Originally Posted by asantiago View Post
    Hello Griff

    i don't take a depth look, it seems very cool but doesn't allow time picker.
    Yes, it does not have a time picker but it is open source and one could be incorporated fairly easily.

  6. #6
    Junior Member
    Join Date
    May 2007
    Location
    Bern - Switzerland
    Posts
    17

    Default

    this migth be something for you...
    http://www.lavantech.com/datetimepicker/

    greets

  7. #7
    WWJ Consultant patmurris's Avatar
    Join Date
    Jun 2005
    Location
    Saint-Paul de Vence, Alpes Maritimes, France
    Posts
    3,383

    Default

    Quote Originally Posted by twf View Post
    this migth be something for you...
    http://www.lavantech.com/datetimepicker/

    greets
    It looks good but isnt free...
    My World Wind Java Blog & WW.net Plugins page

  8. #8
    Junior Member
    Join Date
    May 2007
    Location
    Bern - Switzerland
    Posts
    17

    Default

    ooops... i'm sorry

  9. #9
    Senior Member
    Join Date
    Feb 2007
    Posts
    143

    Default TimePicker

    Needed a timePicker today and ran across the code below and also this thread. Thought I'd put them both together for future reference.

    http://www.roseindia.net/java/exampl...JSpinner.shtml

    SpinnerDateModel sm = new SpinnerDateModel(date, null, null,Calendar.HOUR_OF_DAY);
    JSpinner timePicker = new JSpinner(sm);
    JSpinner.DateEditor de = new JSpinner.DateEditor(timePicker, "hh:mm");
    timePicker.setEditor(de);

  10. #10
    Senior Member heidtmare's Avatar
    Join Date
    Feb 2008
    Location
    Melbourne, FL, USA
    Posts
    674

    Default

    JXDatePicker for the win.
    http://download.java.net/javadesktop...atePicker.html

    I generally format it to ISO8601 so it includes a user editable time value on selection.