Libraryless. Click here for Pure Java version (2135L/14K).
static IntRange jTable_visibleRows(JTable table) { ret table == null ? null : swing(func -> IntRange { Rectangle vr = table.getVisibleRect(); int firstVisibleRow = table.rowAtPoint(vr.getLocation()); vr.translate(0, vr.height); ret intRange(firstVisibleRow, table.rowAtPoint(vr.getLocation())+1); }); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024170 |
Snippet name: | jTable_visibleRows |
Eternal ID of this version: | #1024170/5 |
Text MD5: | e32bfc37324bc728bb2476f47aebd9e2 |
Transpilation MD5: | 8123c5d3c1e8d7532302a04a088db6bd |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-24 13:41:49 |
Source code size: | 330 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 241 / 373 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |