Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1032087 // showAlwaysOnTopTranslucentWindow - works on Ubuntu 20

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4251L/23K).

// component can be a custom-painted JComponent
static JWindow showAlwaysOnTopTranslucentWindow(Rect bounds, Color backgroundWithAlpha, JComponent component default null) {
  ret swing(() -> {
    JWindow f = makeAlwaysOnTopTranslucentWindow(bounds, backgroundWithAlpha, component);
    f.setVisible(true);
    vmBus_send newAlwaysOnTopWindow(f);
    ret f;
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032087
Snippet name: showAlwaysOnTopTranslucentWindow - works on Ubuntu 20
Eternal ID of this version: #1032087/13
Text MD5: 0fc9c4f45b8917e5c8421a236a29c8d6
Transpilation MD5: b0ba56f1ca942399614f7b7908315bd3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 14:54:36
Source code size: 373 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 94 / 153
Version history: 12 change(s)
Referenced in: [show references]