1 | static JFrame showFrame() {
|
2 | ret makeFrame(); |
3 | } |
4 | |
5 | static JFrame showFrame(O content) {
|
6 | ret makeFrame(content); |
7 | } |
8 | |
9 | static JFrame showFrame(S title) {
|
10 | ret makeFrame(title); |
11 | } |
12 | |
13 | static JFrame showFrame(String title, O content) {
|
14 | ret makeFrame(title, content); |
15 | } |
16 | |
17 | static JFrame showFrame(final JFrame f) {
|
18 | if (f != null) swing {
|
19 | if (frameTooSmall(f)) frameStandardSize(f); |
20 | if (!f.isVisible()) f.setVisible(true); // XXX |
21 | if (f.getState() == Frame.ICONIFIED) f.setState(Frame.NORMAL); |
22 | } |
23 | ret f; |
24 | } |
25 | |
26 | // make or update frame |
27 | static JFrame showFrame(String title, O content, JFrame frame) {
|
28 | if (frame == null) |
29 | ret showFrame(title, content); |
30 | else {
|
31 | frame.setTitle(title); |
32 | setFrameContents(frame, content); |
33 | ret frame; |
34 | } |
35 | } |
Began life as a copy of #1000921
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, mqsvbyillbrs, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1001623 |
| Snippet name: | showFrame (synonym of makeFrame) |
| Eternal ID of this version: | #1001623/8 |
| Text MD5: | 0cdbb7427a1a0e44896111318f3f286f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-13 20:49:42 |
| Source code size: | 787 bytes / 35 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1599 / 2379 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |