java program help

Write a simple program called TurnBlue that does the following:

When the program begins a red square is drawn. Each side of the square is 60 pixels, and the square is located 70 pixels from the right and 60 pixels down from the top left corner.

• When the mouse is clicked, the square turns blue.

• When the mouse exits the window the square disappears.

• When the mouse re-enters the window the square reappears and is once again red.

"Order a similar paper and get 100% plagiarism free, professional written paper now!"

Order Now