So I am quite new to java and I want to implement a mouseListener on 4 rectangles that have a randomly generated width and height so that when you click on each one a different dialogue box appears.
I don't really know where to start so any help would be amazing!