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 139686 - Update JavaFX Applet template
Summary: Update JavaFX Applet template
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks: 139683
  Show dependency tree
 
Reported: 2008-07-11 10:26 UTC by Alexandr Scherbatiy
Modified: 2011-10-19 12:03 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-11 10:26:18 UTC
The current applet template is not compiled.

The new version can looks like:
------------------------------------------------------------
import javafx.scene.text.Text;

import javafx.scene.Font;
import javafx.scene.FontStyle;

import javafx.application.Stage;
import javafx.application.Application;

Application{
    stage: Stage{
        content: Text {
            x: 10, y: 30
            content: "HelloWorld"
            font: Font { size: 24  style: FontStyle.PLAIN }
        }
    }
} 
------------------------------------------------------------
Comment 1 Andrey Yamkovoy 2008-07-15 12:00:52 UTC
fixed
Comment 2 Alexandr Scherbatiy 2008-07-16 09:29:38 UTC
- Create the JavaFX Applet file
- Compile the file 
  The file is not compiled because the javafx.scene.text.Text import is missed.

NewJavaFXApplet.fx:18: cannot find symbol
symbol  : class Text
location: class test.NewJavaFXApplet
        content: Text {
1 error
BUILD FAILED (total time: 1 second)
Comment 3 Andrey Yamkovoy 2008-07-16 13:33:55 UTC
Fixed.
Comment 4 Alexandr Scherbatiy 2008-07-17 12:56:11 UTC
verified
Comment 5 David Strupl 2011-10-19 12:03:54 UTC
Cleaning bugzilla categories ....