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 241714 - Align JavaFX Empty FXML wizard with SceneBuilder 2 capabilities
Summary: Align JavaFX Empty FXML wizard with SceneBuilder 2 capabilities
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Visual Tool Integration (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 17:14 UTC by yjoan
Modified: 2015-02-04 09:25 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yjoan 2014-02-11 17:14:30 UTC
SceneBuilder 2 brings support of an empty FXML, but point is "empty" doesn't have the same meaning for the NB 8 "Empty FXML" wizard: for SB 2 empty means a file which has absolutely no content inside, which is new compared to SB 1.*.
But of course attaching a controller and styling as done by the wizard isn't possible if you don't have at least one FXML element.

There's another "message" SB 2 brings which is that AnchorPane isn't the only way (at start SB2 opens on an empty content and one can go with any container, AnchorPane is only one option). Basically is one uses an AnchorPane it's better be on purpose.

As a conclusion I wonder if NB 8 wizard couldn't be renamed something like "Configured FXML": in addition to controller and styling setting the user could also select the class of the root element to choose among all containers of FX 8.
And in addition may be the "Empty FXML" could be kept aside but simply to create a really empty file.
Comment 1 Lou Dasaro 2014-02-12 00:55:04 UTC
I think the command should be renamed from "New Empty FXML file" to "New FXML file". If you want an _empty_ FXML file, fire up Scene Builder. See Bug 241426

You have some good ideas. I'm not sure about adding a bunch of selectable FXML templates (including "empty") to the New FXML File Wizard. It might be good (?). New users might find it confusing, if that matters.