Knute Snortum wrote:Try setting the focusTraversable property to false.
https://openjfx.io/javadoc/11/javafx.graphics/javafx/scene/Node.html#setFocusTraversable(boolean)
Paul Clapham wrote:I would just suggest it isn't really a worthy goal. Unless you have many thousands of TextFields, the memory used by creating one listener per TextField isn't worth worrying about.
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 . . .
Campbell Ritchie wrote:I am not sure that will work, because OP is required to produce a List<Card>. I don't know why she said anything about a List<Integer>.
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:
/*Pre-condition: none
*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.