sclass ScreenOverlay { JWindow window; Color bgColor = colorWithAlpha(Color.blue, 128); settable Rect bounds; void show() swing { if (window != null) ret; assertNotNull(+bounds); window = new JWindow; window.setBackground(bgColor); setBounds(window, bounds); window.setAlwaysOnTop(true); window.setVisible(true); } }