// Changing panel location if it has actually changed
if ( oldIndex != insertIndex )
{
// Updating panel indices
cpl.removeLayoutComponent ( wsp );
cpl.insertLayoutComponent ( insertIndex, wsp );
updateAllBorders ();
// Informing all listeners
fireComponentOrderChanged ( wsp.getComponent (), oldIndex, insertIndex );
}