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

8
LINES

< > BotCompany Repo | #1006524 // alwaysOnTop - make frame/window of component always on top

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

Libraryless. Click here for Pure Java version (4668L/26K).

static <A extends Component> A alwaysOnTop(A c, bool on default true) {
  swing {
    Window w = getWindow(c);
    if (w != null && w.isAlwaysOnTop() != on)
      w.setAlwaysOnTop(on);
  }
  ret c;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006524
Snippet name: alwaysOnTop - make frame/window of component always on top
Eternal ID of this version: #1006524/7
Text MD5: 02cfea7c4afea7c175fe11fc1b56859d
Transpilation MD5: 08571c9d1b6f3c4981038dd7623c44cb
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-27 01:11:50
Source code size: 206 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 521 / 570
Version history: 6 change(s)
Referenced in: [show references]