Re: moving panel
- From: Kirill Grouchnikov <kirillcool@yahoo.com>
- To: "issues@trident.kenai.com" <issues@trident.kenai.com>
- Subject: Re: moving panel
- Date: Mon, 23 Jan 2012 21:15:00 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=vBaUO+FoBHVnuUdfONj317d68D1Jg38xzht3D6q0DpD5kRMhkP0s2ZC16g98syCByfoB5P9U8o01f5aHsh0FmR0+sl/0w0NREvG9FIfxwe+RujRsA+xOCdnn9Hv/8qR0JbQ19fA5xL9Rca1cTgpd/iLWzYMUREXyoBDdc+OSzzc=;
You're passing identical rectangles to the addPropertyToInterpolate call.
You can check this by printing out the result of startBounds.x == endBounds.x
From: a d <svensen.seven@gmail.com>
To: issues@trident.kenai.com
Sent: Monday, January 23, 2012 11:45 PM
Subject: moving panel
I try to move jpanel (named "popup") from one position to another. my code looks like this:private void startActionPerformed(java.awt.event.ActionEvent evt) {
Timeline line = new Timeline(popup);
Rectangle startBounds = popup.getBounds();
Rectangle endBounds = startBounds;
endBounds.x += 100;
line.addPropertyToInterpolate("bounds", startBounds, endBounds);
line.setDuration(15000);
line.play();
}But when i click "start" button. the panel simply jump to new position without animation. I use NullLayout.Do you have any suggestions how to fix it.With best regards, Sergey
| a d | 01/24/2012 | |
|
Re: moving panel |
Kirill Grouchnikov | 01/24/2012 |





