Libraryless. Click here for Pure Java version (2135L/14K).
1 | static IntRange jTable_visibleRows(JTable table) { |
2 | ret table == null ? null : swing(func -> IntRange { |
3 | Rectangle vr = table.getVisibleRect(); |
4 | int firstVisibleRow = table.rowAtPoint(vr.getLocation()); |
5 | vr.translate(0, vr.height); |
6 | ret intRange(firstVisibleRow, table.rowAtPoint(vr.getLocation())+1); |
7 | }); |
8 | } |
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: | 242 / 375 |
Version history: | 4 change(s) |
Referenced in: | [show references] |