I've seen a lot of things here and StackOverflow in English about Swing and Runnable
, even though I could not solve my problem.
I am developing a work for college (interdisciplinary work, involving Distributed Systems / Advanced Data Structures / Technology and Education), which consists of a Crossword puzzle game. The problem is that the user will have the possibility to "mount" the Crossword.
That is, from a secondary window, it will inform you how many rows and columns the Crossword will have. The minimum quantity will be 10 rows per 10 columns. As you may have already guessed, when you close the form and call the method that builds the interface ( JTextField
array) in the main window, there is an approximate time of 8 seconds until the window "thaws." And the time gets bigger as the "grid" grows too. As a parameter: For the construction of a grid of 15 X 15, the matrix appears in approximately 1 second. However, it takes 18 seconds to "defrost".
Is there a solution to this problem?