Knute Snortum wrote:Try setting the focusTraversable property to false.
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 . . .
Stephan van Hulst wrote:To my regret, I'm very VERY familiar with these kinds of d'oh moments.
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.