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: | 152 / 205 |
Referenced in: | [show references] |