@Override
		public void uninstallUI(JComponent c) {
			super.uninstallUI(c);
			JLayer<?> l = (JLayer<?>) c;
			// JLayer must be returned to its initial state
			l.setLayerEventMask(0);
		}
A factory to create JLayer instances to provide the L&amp;F and functionality of a 
disabled panel -- the component assumes a disabled color, and selection via mouse and
keyboard is prevented. As this is simply a layer in the UI stack, previous states of 
components is maintained and unmodified.
Ghidra/Framework/Docking/src/main/java/docking/DisabledComponentLayerFactory.java