Question: PLASE HELP ME !! It is due Tomorrow ;( Make a JFrame with as many panels on it as you want, with the JFrame using
PLASE HELP ME !! It is due Tomorrow ;(
Make a JFrame with as many panels on it as you want, with the JFrame using an Absolute layout. Write code that allows you to drag and drop the panels on the JFrame using a MouseMotionListener. It is okay if this motion is jittery, as making it smooth can be difficult. Further, make it so that clicking the panel will make the color change to a random color. Finally, make sure the panels have some kind of border around them (mine used beleved borders).
Bonus points (+2) will be given for smooth sliding and adding add/delete functionality for panels in a menu (+3)
Sample, pre and post drag/color change:


Dragging Panels
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
