Libraryless. Click here for Pure Java version (5758L/31K).
1 | svoid showDialogOnSameScreen(JDialog dialog, Component c) swing {
|
2 | if (dialog == null) ret; |
3 | Window w = getWindow(c); |
4 | if (w != null) |
5 | centerWindowWithin(dialog, screenBounds_safe(screenNrOfWindow(w))); |
6 | dialog.setVisible(true); |
7 | } |
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: | 392 / 481 |
| Referenced in: | [show references] |