I am writing an application that allows to add any shape select, change color of the shape, highlight the shape selected and delete a shapes. I have an abstract Shape class that contians two methods for drawing and moving shapes. Every Shape has it's own class which inherits from Shape class. I also created a interface that inherits from JFrame. Shapes will be drawn by drawing class which inherits from JPanel,MouseListener, MouseMotionListener, ActionListener...In Interface class when I click add shape button drawing class draw shapes based on shape class. I managed to move the shapes individually but i can't move them after clicking several shapes together..