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 139583 - Samples do not work (Changes in Reprise)
Summary: Samples do not work (Changes in Reprise)
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaFX (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 139683
  Show dependency tree
 
Reported: 2008-07-10 12:48 UTC by Alexandr Scherbatiy
Modified: 2008-07-14 12:17 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-07-10 12:48:30 UTC
- Create a JavaFX Weather sample.
  The sample is not compiled.

  The same is for the Best Practice samples.

-------- Original Message --------
Subject: Upcoming name / class change
Date: Mon, 07 Jul 2008 15:09:57 -0400
From: Shannon Hickey 

Hello,

Just a head's up on two changes that will be coming (in both trunk and
preview) over the next day or so:

1) To avoid conflicts between the new Window/Frame/Dialog and the old
Swing versions, the Swing versions will be renamed
SwingWindow/SwingFrame/SwingDialog.

2) To move us closer to a fully node-based world, Application will no
longer have a "Component" as content. Instead, it will have an attribute
of type Stage. The new Stage class will have a writable attribute for
the node-based content and will provide attributes to ascertain the
usable width and height of the area on which content is drawn.

For backward compatibility with old Applications that are Component
based, we'll introduce SwingApplication for the time being.

Please look for this in trunk first, followed by a merge into the branch.

Thanks,
Shannon
Comment 1 Lark Fitzgerald 2008-07-14 03:08:16 UTC
Here is a summary of what needs to be changed:

Imports were:
import javafx.ext.swing.Frame;
import javafx.ext.swing.Canvas;

Now should be:
import javafx.application.Frame;
import javafx.application.Stage;


Frame use to start as :

Frame {
    content : Canvas {
        background : Color.GRAY


Should now start as:

Frame {
    stage : Stage {
        fill : Color.GRAY

Not all samples use background/fill.
Comment 2 Michal Skvor 2008-07-14 09:32:13 UTC
Fixed.
Comment 3 Alexandr Scherbatiy 2008-07-14 12:17:30 UTC
verified