Mailing Lists: Apple Mailing Lists

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

Maintaining aspect ratio



Has anyone come up with a decent solution in 6.1 for mimicking QTCanvas' ability to maintain a movie's aspect ratio automatically when resized?

I'm almost there by subclassing JPanel, adding my QTComponent to it, then override the JPanel's paint method and set the movie's size. It works, but the movie quickly redraws at the JPanel's new size before redrawing with the new size I have given it. I've tried using a component adapter to listen for resize, but the draw seems to happen before I get called.

Just wondering if anyone had dealt with this - thanks! Also, big thanks to Chris for his book, it's awesome.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

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 © 2007 Apple Inc. All rights reserved.