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

10
LINES

< > BotCompany Repo | #1024924 // showCenterPackedWindow

JavaX fragment (include)

static JWindow showCenterPackedWindow(Component c) {
  ret swing(() -> {
    new JWindow w;
    w.add(c);
    w.pack();
    centerWindow(w);
    w.setVisible(true);
    ret w;
  });
}

Author comment

Began life as a copy of #1003547

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024924
Snippet name: showCenterPackedWindow
Eternal ID of this version: #1024924/1
Text MD5: 141d3f8547d0a79a57854448e61eaa8f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-30 12:53:30
Source code size: 192 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 205 / 246
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)