Is there a code in java to close the drawing panel ?
Exactly what do you mean by close the drawing panel. I mean your just calling the drawing panel since you dragged into the your project. Drawing Panel is a class you don't really need to change anything in the drawing panel.