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:

PLASE HELP ME !! It is due Tomorrow ;( Make a JFrame

with as many panels on it as you want, with the JFrame

Dragging Panels

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!