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 147388 - Samples are not compiled
Summary: Samples are not compiled
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaFX (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-16 15:20 UTC by Alexandr Scherbatiy
Modified: 2008-09-23 09:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-09-16 15:21:10 UTC
Steps to reproduce:

- Create any sample (for example Bounce game)
- Build it
Bounce\src\game\Bounce.fx:115: cannot find symbol
symbol  : variable stage
location: class javafx.application.Frame
    stage : Stage {
Bounce\src\game\Bounce.fx:116: cannot find symbol
symbol  : variable content
location: class javafx.application.Stage
        content : bind [
2 errors
BUILD FAILED (total time: 1 second)
Comment 1 Lark Fitzgerald 2008-09-16 20:19:03 UTC
Using Color Wheel as an example, I was able to fix this by:

1. changing
Frame {
    stage : Stage {
        fill : Color.GRAY
        content : ColorWheel {}
    }

to

Frame {
    scene : Scene {
        fill : Color.GRAY
        content : ColorWheel {}
    }

and changing the import statement from javafx.application.Stage to import javafx.scene.Scene;

I had to do it outside of the IDE though since I was unable to open the broken .fx source in the editor (logged: 
147420)
Comment 2 Michal Skvor 2008-09-22 15:32:35 UTC
Fixed all samples to be up to date.
Comment 3 Alexandr Scherbatiy 2008-09-23 09:46:37 UTC
verified in 2008-09-23_02-01-58.zip