!752 sS imageID = // "#1003543"; "#1005616"; p-awt { JLabel label = new JLabel(imageIcon(imageID)); label.setOpaque(false); new JWindow w; w.add(label); // add it to get appropriate size through pack() w.pack(); Rectangle maxBounds = maxWindowBounds(); w.setLocation(150, maxBounds.y+maxBounds.height-w.getHeight()-20); Rectangle r = w.getBounds(); Rectangle r2 = intersectWithScreen(r); BufferedImage background = shootScreen2(r2); //w.setLayout(null); w.remove(label); new JLayeredPane layeredPane; Rectangle bounds = new Rectangle(0, 0, w.getContentPane().getWidth(), w.getContentPane().getHeight()); w.add(layeredPane); JLabel lBackground = new JLabel(imageIcon(background)); lBackground.setBounds(0, 0, r2.width, r2.height); layeredPane.add(lBackground, new Int(1)); label.setBounds(bounds); layeredPane.add(label, new Int(2)); revalidate(w); //w.setLocation(200, 100); w.setAlwaysOnTop(true); w.setVisible(true); }