Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36647
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2017-05-19 13:06 -0700 |
| References | <5749752d-bc83-4fb5-9abc-1a255e213a29@googlegroups.com> <ofn2ds$4uu$1@dont-email.me> <92a3c52c-8ac7-49f5-9b46-794224e13642@googlegroups.com> <ofndc1$jde$1@dont-email.me> <266d8f3d-b922-42d4-b3c1-f00e8a95574d@googlegroups.com> |
| Message-ID | <80c877a7-0ea7-4869-ace6-54bb6fb04c16@googlegroups.com> (permalink) |
| Subject | Re: How are you supposed to set JTable height? |
| From | Eric Douglas <e.d.programmer@gmail.com> |
On Friday, May 19, 2017 at 2:43:03 PM UTC-4, Eric Douglas wrote: > > > I'm testing these more specific methods and this is tedious. I call fireTableCellUpdated and it crashes saying default row sorter reports row out of range. So I have to nail that down or go back to an update all. Now that I got that worked out I'm back to the hard part. I'm trying to make accessible rows disappear. From what I could find searching the internet for this they just say use the RowFilter, but that makes them inaccessible. I don't want the user to be able to see them or edit them, but I want the program to call get and set methods as if they're showing normally. I hacked the UI to not show them which is the easy part since I already implemented an extension of BasicTableUI for another custom view (cell merge), but now I have to calculate which rows aren't showing, because the built in view from getCellRect is leaving blank space for the invisible rows, so I need to subtract from y for any visible rows the height any invisible row above it should be. This was easy when all rows were visible, but it appears the getCellRect already discounts all cells which should not be in the viewport? So I have to cascade to subtract any cells which are now invisible which otherwise should have been in the viewport? So...say we have 10 rows and the viewable area of the scrollpane shows 6 and we want only rows 1,3,7,9 to show. Y for row 3 has to subtract row 2, now Y for row 7 has to subtract row 2,4,5,6? Does 7 get a correct row for Y to start since it otherwise wouldn't have been in the area?
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-19 07:20 -0700
Re: How are you supposed to set JTable height? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-19 11:22 -0400
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-19 10:45 -0700
Re: How are you supposed to set JTable height? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-19 14:29 -0400
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-19 11:42 -0700
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-19 13:06 -0700
Re: How are you supposed to set JTable height? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-20 07:59 -0400
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-22 04:55 -0700
Re: How are you supposed to set JTable height? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-22 09:00 -0400
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-22 06:42 -0700
Re: How are you supposed to set JTable height? Eric Douglas <e.d.programmer@gmail.com> - 2017-05-22 09:18 -0700
Re: How are you supposed to set JTable height? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-22 17:15 -0400
csiph-web