title: setting a timer for a label in Java
body: <p>Currently, I am developing an ATM simulation and there are mainly three functions, which are "display balance", "withdraw money" and "deposit money". As it is just a simulation, there is no cash dispenser and because of this reason, I assigned a random amount when the customer would like to deposit money to the account.</p>
  
  <p>When it comes to my question, when the user clicks to the deposit money, there is a label in that screen. I want that label to write "counting money" for 2 seconds and then show the actual amount, which is randomly generated.</p>
  
  <p>My problem is the first part. How can I let the label write "counting" for 2 seconds?</p>
  
  <p>Thank you for your answers and time.</p>