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

6
LINES

< > BotCompany Repo | #1035455 // componentToFront

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

Libraryless. Click here for Pure Java version (7965L/45K).

svoid componentToFront(Component c) {
  if (c != null) swing {
    var parent = c.getParent();
    parent?.setComponentZOrder(c, 0);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035455
Snippet name: componentToFront
Eternal ID of this version: #1035455/1
Text MD5: 949d1f414834b469730992c285bad5f6
Transpilation MD5: ec57cc7ff05d7a3650d6d8c007a47118
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-14 03:15:45
Source code size: 143 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 194
Referenced in: [show references]