Libraryless. Click here for Pure Java version (42L/1K/2K).
1 | !7 |
2 | |
3 | p { |
4 | JFrame f = new JFrame(); |
5 | f.setUndecorated(true); |
6 | f.setBackground(new Color(0,255,0,0)); |
7 | f.setSize(512, 512); |
8 | f.add(new JPanel() { |
9 | @Override |
10 | protected void paintComponent(Graphics g) { |
11 | g.setColor(Color.RED); |
12 | g.drawRect(0, 0, 511, 511); |
13 | } |
14 | }); |
15 | f.setLocationRelativeTo(null); |
16 | f.setVisible(true); |
17 | } |
http://stackoverflow.com/questions/25767503/transparent-frame-works-correctly-in-windows-but-not-in-linux
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, etmzoiygucik, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005621 |
Snippet name: | Translucent Window Test (from StackOverflow, seems to work on Linux, but makes a task bar entry) |
Eternal ID of this version: | #1005621/4 |
Text MD5: | 37a35feee6af03ce3d01ba62c1f9b53f |
Transpilation MD5: | eeda350926002f452dedbe55ccae3147 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-18 17:03:07 |
Source code size: | 371 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 507 / 624 |
Version history: | 3 change(s) |
Referenced in: | [show references] |