How would I back track something like theres 4 labels and there back colour is white at the start then you click a button to turn them all blue and the you make another button how do you make it back track when you click the button (green), so you wont need to type
Well as you may know controls don't keep a history of their states by default. This means that if you wish to keep track of a control's previous states, you will have to some how store that state information. That way when you want to go back, you can simply look up the previous state information and reset the control that state. The beauty of this is that you also get the option to move forward with state as well so you can go back and forth much like an Undo or Redo option in a graphics program.
I suggest you check out the use of an arraylist to store this information about controls you wish to save. But as for default, there isn't anyway to go back except for physically setting it with the color.