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 137562 - Standard JavaFX Script imports for new created files
Summary: Standard JavaFX Script imports for new created files
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 13:52 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-06-18 13:52:52 UTC
It is better if new crated files contain standard JavaFX Script imports:

----------------------------------------- 
/*
 * NewJavaFXEmpty.fx
 *
 * Created on Jun 18, 2008, 4:55:55 PM
 */

package javafxapplication1;


import javafx.gui.*;
import javafx.animation.*;
import javafx.gui.component.*;


-----------------------------------------
Comment 1 Andrey Yamkovoy 2008-06-19 12:40:36 UTC
It's not a bug! 
Moreover in my opinion it's not a good practice to have imports like blablabla.*
To help new users I think we may add comments in the templates like:
// Animation classes are located in the javafx.gui.animation package. To use it add/uncomment import ....
The same for components and all other classes from gui library.
Comment 2 Alexandr Scherbatiy 2008-06-25 11:23:00 UTC
The Reprise has a lot packages now and Palette adds imports for
the components. May be in this case it is not necessary to have predefined imports.
Comment 3 David Strupl 2011-10-19 12:03:45 UTC
Cleaning bugzilla categories ....