Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes-like JTable (alternating row colors)...



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.

References: 
 >Re: iTunes-like JTable (alternating row colors)... (From: Sam Berlin <email@hidden>)



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.