title: Java: jLayeredPane problem defining mouseAdapter for different layer components
body: <p>I am using jLayeredPane in my Java GUI. I added some panels(jPanelsLayer1) on DEFAULT_LAYER of my jLayeredPane and also each jPanel has a MouseAdapter  that Overrides mouseEntered and mouseExited for my purposes. When I add another components(jPanelsLayer2) on the PALETTE_LAYER of JlayerdePane, on the top of jPanelsLayer1, and defined MouseAdapter for them, I have problem. When mouse entered the common area mouseEntered and mouseExited of jPanels of different layers run consecutive several times. I want only jPanelslayer2 mouseAdapters to be active when they are seen on the top of jpanelLayer1. Maybe a solution be to remove jPanelLayer1 mouseAdapter. But this is not effective. </p>
  
  <p>Please guid me.....sajad</p>