Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1034179 // tempAddToWindow (adds stuff at the bottom of window)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6943L/39K).

1  
meta-for JWindow also as JFrame {
2  
3  
  static AutoCloseable tempAddToWindow(JWindow w, Component toAdd) {
4  
    if (w == null || toAdd == null) null;
5  
    ret swing(-> {
6  
      var oldContent = w.getContentPane();
7  
      setContentPane(w, centerAndSouth(oldContent, toAdd));
8  
      ret -> setContentPane(w, oldContent);
9  
    });
10  
  }
11  
  
12  
}

Author comment

Began life as a copy of #1001528

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034179
Snippet name: tempAddToWindow (adds stuff at the bottom of window)
Eternal ID of this version: #1034179/3
Text MD5: 7d279b53207b2d1d1380895369de3dc4
Transpilation MD5: 529f617cdfe5e7040d1a46d27e9e3b82
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-25 21:33:40
Source code size: 339 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 202
Version history: 2 change(s)
Referenced in: [show references]