This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 133176 - [Preview] Animation does not work in Preview in some cases
Summary: [Preview] Animation does not work in Preview in some cases
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2008-04-18 09:51 UTC by Alexandr Scherbatiy
Modified: 2008-06-04 13:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Planets app that does not work in the Preview (12.08 KB, application/octet-stream)
2008-05-04 15:00 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-04-18 09:51:08 UTC
Steps to reproduce:

- Create a JavaFX Script file:
---------------------------------------------------------
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.animation.*;
import java.lang.System;

var angle = 0.0;

var timeline = Timeline {
    keyFrames:  KeyFrame { time: 1s values: angle => 360 tween Interpolator.LINEAR }
    repeatCount: java.lang.Double.POSITIVE_INFINITY
} 

timeline.start();

Frame{
    width: 100
    height: 100
    title: "Example"
    onClose: function(){ System.exit(0);}
    content: Canvas{
        content: Group{ 
            transform: Transform.translate(25, 25)
            content: Rect{
                x: 25
                y: 25
                width: 50
                height: 50
                fill: Color.ORANGE
                transform: bind  Transform.rotate(angle, 0, 0)
            }
    }
}
visible: true    
}
---------------------------------------------------------

- Enable the preview
  The rectangle is not rotated in the Preview
Comment 1 Alexei Mokeev 2008-04-18 10:03:53 UTC
Works fine for me with 04/17 build.
What is your build number ?
Comment 2 Alexandr Scherbatiy 2008-04-18 10:43:49 UTC
build 2008-04-18_02-32-38.zip
Comment 3 Oleg Barbashov 2008-04-21 12:37:50 UTC
Works with the latest runtme.
Comment 4 Alexandr Scherbatiy 2008-04-28 09:21:59 UTC
verified
Comment 5 Alexandr Scherbatiy 2008-04-28 09:55:49 UTC
- Create a Clock example from 'Samples|JavaFX|Best Practices|Input|Clock' samples
- Run the sample
  A frame with working clock appears
- Enable th preview
  The clock does not work in the Preview


Comment 6 Alexandr Scherbatiy 2008-04-29 13:22:06 UTC
The Animation works fist time but does not work second and others times.
Comment 7 Alexandr Scherbatiy 2008-05-04 15:00:28 UTC
Created attachment 61022 [details]
Planets app that does not work in the Preview
Comment 8 Oleg Barbashov 2008-06-03 16:26:38 UTC
Fixed.
Comment 9 Alexandr Scherbatiy 2008-06-04 13:17:12 UTC
verified