Libraryless. Click here for Pure Java version (324L/3K/12K).
!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); }
Began life as a copy of #1005620
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005622 |
Snippet name: | Show Animated GIF Somewhere On Screen With Home-Made Translucency |
Eternal ID of this version: | #1005622/1 |
Text MD5: | 95a686322fe0e49aeea8e3c466446a44 |
Transpilation MD5: | a45c644e26f5579a9c10b19b41889544 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-30 13:23:59 |
Source code size: | 1014 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 535 / 639 |
Referenced in: | #1005626 - freeFloatingAnimation |