Giter VIP home page Giter VIP logo

Comments (6)

VincentBonnafous avatar VincentBonnafous commented on September 25, 2024

I use 8.0-r3 version

from jfxtras.

tbee avatar tbee commented on September 25, 2024

I'll take a peek tonight, see what is causing this. No exceptions in the console?

Tom

On 26-11-2014 14:28, VincentBonnafous wrote:

Hi,

Your lib is great, nice job

But, i create a CalendarTimtextField with a format and a timezone.

with this code :

final CalendarTimeTextField lCalendarTimePicker= new CalendarTimeTextField();
SimpleDateFormat timeFormat= new SimpleDateFormat("HH:mm:ss");
timeFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
lCalendarTimePicker.setDateFormat(timeFormat);

and the drop combo don't display the first slider for the hours.

datepickerdrop https://cloud.githubusercontent.com/assets/9962744/5201910/646828aa-7578-11e4-912c-de6e37549688.png


Reply to this email directly or view it on GitHub #16.

from jfxtras.

VincentBonnafous avatar VincentBonnafous commented on September 25, 2024

No message in the console

Thanks, here is the complete code to test quickly.

public class CalendarTimePickerSample1 extends Application {

    private Stage stage;

    public static void main(String[] args) {
        Locale.setDefault(Locale.US);
        launch(args);
    }

    @Override
    public void start(Stage stage) {
        this.stage = stage;
        stage.setTitle("DatePickerSample ");
        initUI();
        stage.show();
    }

    private void initUI() {

        GridPane lGridPane = new GridPane();
        lGridPane.setVgap(10);

        Scene scene = new Scene(lGridPane, 400, 400);
        stage.setScene(scene);

        final CalendarTimeTextField lCalendarTimePicker = new CalendarTimeTextField();
        SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
        timeFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        lCalendarTimePicker.setDateFormat(timeFormat);

        lGridPane.add(lCalendarTimePicker, 0, 0, 2, 1);
    }
}

from jfxtras.

tbee avatar tbee commented on September 25, 2024

Well, that is interesting, setting a timezone in a totally none timezone string renderer. The time picker indeed was not handling it right, I fixed that I hope (please try r4-SNAPSHOT and reopen if I did not), but what is much more interesting is what you want to achieve with setting that timezone.

from jfxtras.

VincentBonnafous avatar VincentBonnafous commented on September 25, 2024

OK(It works).
I work in the spatial domain for the CNES ( French Spatial Agence) and the people use dates in UTC

from jfxtras.

tbee avatar tbee commented on September 25, 2024

Ok, But it does not make any difference for the time picker what timezone it is in, it simply selects hours from 0 to 23 (or 0 AM to 11 PM). That is the same in any timezone, so setting the timezone has no value.

But it is good to hear that it is solved.

from jfxtras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.