Libraryless. Click here for Pure Java version (42L/1K/2K).
!7 p { JFrame f = new JFrame(); f.setUndecorated(true); f.setBackground(new Color(0,255,0,0)); f.setSize(512, 512); f.add(new JPanel() { @Override protected void paintComponent(Graphics g) { g.setColor(Color.RED); g.drawRect(0, 0, 511, 511); } }); f.setLocationRelativeTo(null); f.setVisible(true); }
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: | 506 / 622 |
Version history: | 3 change(s) |
Referenced in: | [show references] |