| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
In order for this to work, you'd have to constantly change the data model's rowCount to sync up with the size of the ( viewport.height / (intercellSpacing.height+rowHeight) ). And even that would have a scrollbar appear if the spacing wasn't exactly the correct width of a cell. That's a little too hacky for my tastes._______________________________________________
Thanks,
Sam
Jim Hagen wrote:
How about working around the problem by making your table model return default 'empty string' values for however many rows you need to fill the available space? You might need some marker or other method in the data model to distinguish 'valid' rows from rows that are just there to return empty strings, and you'll have an odd side effect of scrolling empty rows when there shouldn't be any scrolling going on. You may be able to adjust the number of 'empty' rows in the table model to match what you need to fill the available space and thus avoid scrollbars where they shouldn't be... just a thought._______________________________________________
On Wednesday, August 27, 2003, at 01:20 PM, Sam Berlin wrote:
I think you'd need to write a custom JTable UI for that. If you find out an easier way, let me know!
Thanks,
Sam
Dave Thorup wrote:
Thank you both Steve and Sam! Sorry to take so long to respond, but for
some reason all mail from Apple's mailing lists got blacklisted by our spam
filter.
Anyway, both of your suggestions work well, however they only stripe rows
that contain items. Any rows that do not contain anything are not striped.
Any ideas on how to extend the striping to empty rows as well?
Thanks again!
____________________________________
Dave Thorup
Software Engineer
email@hidden
www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
.
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: iTunes-like JTable (alternating row colors)... (From: Sam Berlin <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.