okay guys so i just started my first java class to become a programmer. im 16. i have no idea how to do any of this stuff. my teacher gave us an assignment in java and told us to do as much as we could and that he would show us how to do it next week.. heres the program
"for this assignment you will write an application that plays a "guess my number" game using GUI elements. the game requirements are:
--The program should select a random number 1 to 1000. The program should then ask the user to guess a number from 1 to 1000. A JtextField can be used for the guesses.
--After each guess is input, the background color of the box should change to either blue(for cold) or red(for hot) along with a label that tells the user if they were too high or too low. When the user finally guesses the right answer, the color should be green and the box should change to uneditable. The game should ask the user if they want to play again.
At the end of each round of play, the number of guesses it took to get the number correct should be recorded, along with the time it took. When the user indicates that they would like to stop playing the game, the relent statistics should be displayed in a dialog box before the program ends..so the user knows for each round played, how many guesses it took and the time it took to get the right answer the should hit OK on this box to end the program and the game entirely ."
so theres the program could any one help me?? help me write the code along with explaining the lines of code?