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

8
LINES

< > BotCompany Repo | #1031156 // frameMaxHeight

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

Libraryless. Click here for Pure Java version (2944L/17K).

1  
svoid frameMaxHeight(Window w, int h) {
2  
  onResize(w, r {
3  
    if (w.getHeight() > h) {
4  
      w.setSize(w.getWidth(), h);
5  
      revalidate(w);
6  
    }
7  
  });
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031156
Snippet name: frameMaxHeight
Eternal ID of this version: #1031156/1
Text MD5: e3555df4f24d85243973cfc0511182d8
Transpilation MD5: 5ddf70af96c52d2674db2673da62d837
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-13 18:58:07
Source code size: 162 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 233
Referenced in: [show references]