| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 13:42 +0900 22/1/02, Colin Mack wrote:
The sample program PlayMovie lets you open a movie file and play it with the standard QT controller visible. It works just fine as is, using a main class that extends Frame. Since what little java knowledge I have comes from swing-oriented book, I tried moving the guts of PlayMovie over to a swing-based setup, using my own groovy custom layout in a JFrame-based main class. Works almost as it should, but I lose the ability to step frame-by-frame using just the arrow keys on the keyboard (this works in the original PlayMovie). I have set setKeysEnabled(true) for the MovieController but it doesn't seem to be enough.
I had similar problems with the keyboard control. Try calling requestFocus() on your QTCanvas after laying out and showing your frame.
-Rolf
-- Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
| References: | |
| >Re: QTJ with swing (was Re: Is it just me?) (From: Rolf Howarth <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.