Libraryless. Click here for Pure Java version (4770L/27K).
static JWindow showTransparentJWindow(Rect bounds, Component component) { new JWindow window; window.setBounds(toRectangle(bounds)); window.setBackground(new Color(0, 0, 0, 0)); window.setAlwaysOnTop(true); window.add(component); window.setVisible(true); ret window; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034014 |
Snippet name: | showTransparentJWindow |
Eternal ID of this version: | #1034014/1 |
Text MD5: | f0aeadd5697c72b5e62167566f9939d0 |
Transpilation MD5: | 2e77ab838464dcc2cb9c414e3d9bdb28 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-17 01:29:07 |
Source code size: | 290 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 177 / 218 |
Referenced in: | [show references] |