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).

svoid frameMaxHeight(Window w, int h) {
  onResize(w, r {
    if (w.getHeight() > h) {
      w.setSize(w.getWidth(), h);
      revalidate(w);
    }
  });
}

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: 83 / 139
Referenced in: [show references]