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

9
LINES

< > BotCompany Repo | #1016721 - scrollAllTheWayDown

JavaX fragment (include)

sbool scrollAllTheWayDown_bruteForce = true;

static void scrollAllTheWayDown(final JComponent c) {
  if (c != null) swing {
    int h = c.getHeight()-1;
    if (scrollAllTheWayDown_bruteForce) h = max(h, 100000);
    c.scrollRectToVisible(new Rectangle(0, h, 1, 1));
  }
}

Author comment

Began life as a copy of #1015155

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1016721
Snippet name: scrollAllTheWayDown
Eternal ID of this version: #1016721/5
Text MD5: be5226a7535905bc61ea33dec5526578
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-28 13:17:24
Source code size: 281 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 200 / 224
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016721 & http://1016721.tinybrain.de