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

7
LINES

< > BotCompany Repo | #1034125 // showDialogOnSameScreen

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

Libraryless. Click here for Pure Java version (5758L/31K).

svoid showDialogOnSameScreen(JDialog dialog, Component c) swing {
  if (dialog == null) ret;
  Window w = getWindow(c);
  if (w != null)
    centerWindowWithin(dialog, screenBounds_safe(screenNrOfWindow(w)));
  dialog.setVisible(true);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034125
Snippet name: showDialogOnSameScreen
Eternal ID of this version: #1034125/1
Text MD5: 64883005c9a5f1a4431cbf829c6dd6b9
Transpilation MD5: 5871912af19ee8cea6d2f0df8fad9bc3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-23 21:05:17
Source code size: 243 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 207
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)