Libraryless. Compilation Failed (4738L/26K).
1 | !7 |
2 | |
3 | p-awt { |
4 | JLabel label = new JLabel("TEST"); |
5 | //imageIcon("#1005616")); |
6 | new JWindow w; |
7 | w.add(label); |
8 | w.pack(); |
9 | w.setLocation(150, getScreenHeight()-40); |
10 | w.setAlwaysOnTop(true); |
11 | |
12 | // translucency magic |
13 | //w.setOpacity(0.5f); // JDK 7+ |
14 | label.setOpaque(false); |
15 | //w.setBackground(new Color(0, 0, 0, 0)); |
16 | com.sun.awt.AWTUtilities.setWindowOpaque(w, false); |
17 | |
18 | w.setVisible(true); |
19 | } |
Began life as a copy of #1005620
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jmyaexzvplwz, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013336 |
Snippet name: | Bad Translucent Window Test using com.sun.awt.AWTUtilities.setWindowOpaque [doesn't work] |
Eternal ID of this version: | #1013336/6 |
Text MD5: | 036cffb3e1e058c52d7aafb4ddf4b140 |
Transpilation MD5: | 609635c20438cd8ac5974f5604d023ce |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-09 16:21:02 |
Source code size: | 421 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 432 / 527 |
Version history: | 5 change(s) |
Referenced in: | [show references] |