Libraryless. Click here for Pure Java version (4770L/27K).
1 | static JWindow showTransparentJWindow(Rect bounds, Component component) { |
2 | new JWindow window; |
3 | window.setBounds(toRectangle(bounds)); |
4 | window.setBackground(new Color(0, 0, 0, 0)); |
5 | window.setAlwaysOnTop(true); |
6 | window.add(component); |
7 | window.setVisible(true); |
8 | ret window; |
9 | } |
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: | 178 / 220 |
Referenced in: | [show references] |