layeredPane.setLayer(embeddedPanel, Integer.MIN_VALUE);
// Hack to reparent without the native component to be disposed
// layeredPane.add(embeddedPanel);
layeredPane.setComponentZOrder(embeddedPanel, 0);
layeredPane.revalidate();
layeredPane.repaint();
revalidate();
repaint();
} catch(RuntimeException ex) {
super.removeNotify();
throw ex;