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 237214 - ComboBox css and JavaFX scene builder 1.1
Summary: ComboBox css and JavaFX scene builder 1.1
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 17:16 UTC by Seen_Building
Modified: 2014-07-16 16:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fxml (2.17 KB, application/xml)
2013-10-16 17:57 UTC, Seen_Building
Details
fxml with added xmlns (1.89 KB, application/xml)
2013-10-18 07:57 UTC, Lou Dasaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seen_Building 2013-10-16 17:16:40 UTC
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).
Comment 1 Seen_Building 2013-10-16 17:57:54 UTC
Created attachment 141172 [details]
fxml
Comment 2 Lou Dasaro 2013-10-18 07:57:09 UTC
Created attachment 141239 [details]
fxml with added xmlns
Comment 3 Lou Dasaro 2013-10-18 08:07:08 UTC
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
Comment 4 Seen_Building 2013-10-18 16:26:50 UTC
" 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,
Comment 5 Lou Dasaro 2013-10-18 18:01:16 UTC
Just to make sure I'm not missing something, what OS and version of NetBeans were you using with this, please?
Comment 6 Seen_Building 2013-10-18 18:18:35 UTC
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)
Comment 7 Roman Svitanic 2014-07-15 14:57:59 UTC
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).