Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:23:39+00:00 2026-06-08T17:23:39+00:00

I have a JavaFX application, and a worker thread, implemented via javafx.concurrent.Task , that

  • 0

I have a JavaFX application, and a worker thread, implemented via javafx.concurrent.Task, that performs a long process, that is zipping and uploading a set of files.

I’ve connected the task progress to a progress bar via progressProperty.

In addition to this I want a detailed state about the item being processed to be reported into the UI. That is, the name of the file being processed along with its size and any error that may arise from the single file process.

Updating the UI with these information cannot be done from the worker thread, at the most I can add it to a synchronized collection.

But then I need some event to inform the UI that new data is available.

Does JavaFX have some specific support for this issue?

Update, better formulation

Instead of designing an ad hoc cross-thread mechanism as Platform.runLater, I’m trying to allow each property to be listened from other threads. Just like runningProperty and stateProperty provided by Task.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:23:40+00:00Added an answer on June 8, 2026 at 5:23 pm

    I’m running into a similar issue, as far as I can tell you have to deal with the error handling yourself. My solution is to update the UI via a method call:

    Something like:

      try
      {
        //blah...
      }
      catch (Exception e)
      {
        reportAndLogException(e);
      }
      ...
      public void reportAndLogException(final Throwable t)
      {
        Platform.runLater(new Runnable() {
          @Override public void run() {
            //Update UI here     
          }
        });
      }
    

    Essentially I am just manually moving it back to the UI Thread for an update (as I would do in pretty much any other framework).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JavaFx 2.0 desktop application that I intend to run via the
I have a simple javaFX application that loads a webpage in a WebView componant.
I have JavaFX application, and I want to detect that some amount of time
I have this easy little form in my JavaFX application. I want to use
I have just explore javaFX. I am now programming modul based application by netBeans
I have just started digging into JavaFX and have a requirement that I am
We have an application that uses a JAX-RPC client library and is running on
Hi Java programmers. I badly need your help. I have a JavaFX/Java ME application.
I have a jnlp file for deploying my javafx 2.0 application, however, how do
Is there an event that gets fired when somebody closes a desktop-based Java/JavaFx application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.