public void left1panel2() {
        Component getComp = BGPane.getComponentAt(80, 170);
        int x = getComp.getX();
        int y = getComp.getY();
        if (x < 190 && y > 110) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    for (int l2x = 80, l2y = 163, l2h = 480; l2x <= 190 && l2y >= 110 && l2h <= 610; l2x++, l2h++, l2y--) {
                        l2x++;
                        left2panel.setLocation(l2x, l2y);
                        l2x++;
                        try {
                            Thread.sleep(4);
                        } catch (Exception e) {
                            e.printStackTrace();

                        }
                    }
//                    jLayeredPane1.moveToFront(left1panel);
//                    left1panel.grabFocus();
                }
            }).start();
        }
    }