Libraryless. Click here for Pure Java version (6605L/37K).
1 | static JFrame makeUndecoratedFrame(S title, O content) { |
2 | ret swing(() -> { |
3 | JFrame frame = new JFrame(title); |
4 | frame.setUndecorated(true); |
5 | Component wrapped = wrap(content); |
6 | if (wrapped != null) |
7 | frame.getContentPane().add(wrapped); |
8 | frame.setBounds(defaultNewFrameBounds()); |
9 | ret frame; |
10 | }); |
11 | } |
Began life as a copy of #1000921
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033421 |
Snippet name: | makeUndecoratedFrame |
Eternal ID of this version: | #1033421/1 |
Text MD5: | 687f9166b95742bae8bd55fdd7efeb5a |
Transpilation MD5: | c1eea8d31fc7b7b7356cdd1ecbb56855 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-27 10:02:39 |
Source code size: | 332 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 273 |
Referenced in: | [show references] |