Campbell Ritchie wrote:Are you telling me Homer Simpson didn't invent it himself?
Paul Clapham wrote:. . . Probably the word "D'oh" wasn't invented specifically for computer programmers . . .
Stephan van Hulst wrote:To my regret, I'm very VERY familiar with these kinds of d'oh moments.
Stephan van Hulst wrote:Well yeah, you have an extra comma in the format string after the month specifier.
Ana Yo wrote:Hi there, I just started learning about ArrayLists and I am trying to implement a deck of cards. The instructions are:
*Post-condition: A new ArrayList of cards will be created with 52 cards.
*There will be 4 suits with 13 cards each.
This is what I have so far:
I don't know if I should add more code or not.
Stephan van Hulst wrote:Michael, your example doesn't contain any action that needs to wait until the UI update is done. Why do you need to wait until the text area and buttons have updated? What do you want to do afterwards?
It's also not a good idea to use polling (also known as "busy wait") to wait for other tasks to finish. I'm not convinced you need to wait at all, but if you do, use lock conditions.
Knute Snortum wrote:This is how I learned to run a task in JavaFX without blocking the UI:
Hope that helps.