Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Striped JList and JTable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Striped JList and JTable



Hi,

in most places in OS X, lists and tables use alternating row background colors. These make the data in the list easier to read, especially when there are many rows. Examples are the list of updates in Software Update, and the main overview screen in iTunes. Both use striped background of white and blue.

Unfortunately the standard JList and JTable with the Aqua look and feel come with plain white backgrounds. I’ve been trying to emulate the look of the striped lists by changing the ListCellRenderer, but with this I can only change the backgrounds of the actual rows, and not of the ‘empty’ rows in the table. It also has the disadvantage that I have to use my own subclass every time. Is there any better way to achieve this look, and install it for all JList and JTable instances? Also, is there a good way to request this look becoming the default in future versions of Apple’s Aqua look and feel?

Cheers,

 

Dennis Bijlsma

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.