I have a swing application with 5 jTextFields.
there is a button to call a "calculate" method but for user convenience sake i want to have the application constantly attempt to calculate the answer (run a method) whenever the user types a new number / changes any number in any of the textfields. So far I have 5 different KeyTyped Events (one for each jtextfield) in which i call the method.
However I have a problem and that is when i launch the application this will not work for about 10 seconds - the method will just not run. After about 10 seconds it works nicely.
How can I a) get rid of this 10 second lag or b) display a dialog like "loading application" until it is ready?
Or maybe another way because what I did is horribly wrong?
here is the source: here
i only included this new "feature" in the LumpSum main window that comes up when you start the application.