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.
Product Version JavaFX Scene Builder 1.1 Build Information Version: 1.1-b35, Changeset: 50e3d7cdf394 Date: 2013-08-27 10:45 JavaFX Toolkit = QuantumToolkit Pipeline = J2DPipeline Hardware acceleration DISABLED Java 1.7.0_40-b43, Oracle Corporation Operating System Windows 7, x86, 6.1 Add combobox Enter: .combo-box .text{-fx-fill: red;-fx-font-size: 40px;} to the "style" field of a ComboBox Save the fxml file Close scene-builder Attempt to reopen the fxml. File will not open. Kill scene builder. (Task Manager) Edit the fxml file, remove the style from the combobox. Save the file, file now opens in scene-builder. Also, style: .combo-box .text{-fx-font-size: 40px;} doesn't seem to do anything (at least in Scene Builder).
Created attachment 141172 [details] fxml
Created attachment 141239 [details] fxml with added xmlns
Reporter, I'm sorry to say your fxml file is in error. The xmlns is missing!!! Your fxml won't load because someone deleted this line: xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2 from the section for the AnchorPane. I'm uploading your code with the line included so you can see what I mean. JavaFX Scene Builder 1.1 GA should always output this line (which incidentally is problematic for all releases of NetBeans except the most recent Development builds. The workaround for 7.4/7.3.1 and older builds is to delete the '/1', not the whole line). See also Bug 236509 and https://javafx-jira.kenai.com/browse/DTL-5834 In the future, if you find a bug in JavaFX Scene Builder, you probably should file a bug report with the folks responsible for that product at https://javafx-jira.kenai.com/browse/DTL Tested with no anomalies in the following environment: Product Version JavaFX Scene Builder 1.1 Version: 1.1-b35, Changeset: 50e3d7cdf394 Date: 2013-08-27 10:45 JavaFX: Toolkit = QuantumToolkit; Pipeline = D3DPipeline; Hardware acceleration ENABLED Java: 1.7.0_40-b43, Oracle Corporation Operating System: Windows 8, x86, 6.2
" Your fxml won't load because someone deleted this line:" In this case "someone" would be SceneBuilder since the file was not edited by hand. Probably hard to figure out when that was deleted by SceneBuilder (and that's not your area anyway), so it's probably not worth pursuing. Thanks,
Just to make sure I'm not missing something, what OS and version of NetBeans were you using with this, please?
Java 1.7.0_40-b43, Oracle Corporation Operating System Windows 7, x86, 6.1 Product Version: NetBeans IDE 7.4 (Build 201310111528) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
This seems to be an issue unrelated with NetBeans. If the issue persists in JavaFX Scene Builder, please report a bug to Scene Builder team (see Lou's comment #3 for more info).