I have three panels in my JApplet. I am able to drag the panels with the following code. I wanted to know how to interchange the panels. For example if the first panel is dragged over the second both the panels should swap positions. I have included the code for dragging the panels.