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)...



Steve Roy <email@hidden> wrote:

> I've never experimented with this. My first thought is that it might be easier
> to try to make the table fill all the visible space of the viewport when its
> minimum size is not bigger than it. You can try overriding the
getMinimumSize()
> or getPreferredSize() method of the table, and then also its paintComponent()
> method to draw the empty rows?

Come to think of it, it's the component that lays out the table that should be
overriden. That's probably the viewport.

Steve

--
Steve Roy <email@hidden>
Personal homepage: <http://homepage.mac.com/sroy>
Projects homepage: <http://www.roydesign.net>
_______________________________________________
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.



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.