SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JPanel jP = new JPanel();
  2. JLayeredPane jLP = new JLayeredPane();
  3. MouseAdapter mouse = new MouseAdapter();
  4. jLP.addMouseListener(mouse);
  5.    
  6. public class MouseAdapter{
  7.   //Make sure you override the methods
  8. }
  9.    
  10. public class MyLayers extends JLayeredPane implements MouseListener
  11. {
  12.   public MyLayers(){
  13.     addMouseListener(this);
  14.   }
  15. //again make sure you override the methods
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top