Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Java, Java 7 Edition
This is the forum to discuss the Wrox book Ivor Horton's Beginning Java, Java 7 Edition by Ivor Horton ; ISBN: 978-0-470-40414-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Java, Java 7 Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2012, 08:39 PM
Authorized User
 
Join Date: Nov 2011
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Question Ch 20 Rotation & the bounding box

Hi All
I have finished chapter 20 and all appears to work except the rotation of the elements. Well the rotation works but the bounding box is not rotated. It stays where element was before the rotation. Now "Move" works just fine and the bounding box is moved with the element.
Questions:
1 has anybody else noticed this.
(After rotation,if you have not rotated the element out of the bounding box, only part of it will be highlighted (the part that is still in the box) when you move the cursor over it.)

2 how do I fix it. ??
I think the problem may be that when you rotate the bounding box, a java.awt.Rectangle, it is no longer a rectangle.

No the problem was I missed the added code in the java.awt.Rectangle getBounds() class. It all works now.

Thanks
cliff
__________________
"Software to the Stars"
Failure is not an option. It comes bundled with your Microsoft products.

Last edited by Cliff2310; July 29th, 2012 at 07:51 PM.. Reason: Found the problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 20 - best practices Jgribb BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 November 2nd, 2011 04:05 AM
CH 20 Database Controls cpfuller BOOK: Visual Basic 2010 Programmer's Reference 3 July 3rd, 2011 10:50 AM
Ch. 20 - Compass & Rotations not working sirab33 BOOK: Beginning iOS 4 Application Development 2 June 6th, 2011 11:15 PM
Ch. 7 - how do you slow-down Orientation-Rotation? (like Portrait-to-Landscape, etc.) sirab33 BOOK: Beginning iOS 4 Application Development 0 May 29th, 2011 01:57 PM
SQL Express & Ch 20 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 1 August 2nd, 2007 05:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.