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 256522 - Incorrect FXML error flagged: Constant 'CONSTRAINED_RESIZE_POLICY' is not defined for 'TableView'
Summary: Incorrect FXML error flagged: Constant 'CONSTRAINED_RESIZE_POLICY' is not def...
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 3 votes (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2015-11-11 17:32 UTC by swpalmer
Modified: 2015-12-04 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Image of Error (5.88 KB, image/png)
2015-12-04 15:42 UTC, hink084

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2015-11-11 17:32:59 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b17

Reproducibility: Happens every time

  Using SceneBuilder set the column resize policy to contrained-resize
  Look at the FXML file in NetBeans.  It has highlighted the line:
     <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
  as an error.

  Constant 'CONSTRAINED_RESIZE_POLICY' is not defined for 'TableView'

  no error should be found

May be related to Bug 25241
Comment 1 hink084 2015-12-04 15:42:10 UTC
Created attachment 157668 [details]
Image of Error
Comment 2 hink084 2015-12-04 15:50:40 UTC
The application will still build and run correctly despite this error being shown in the IDE.  However, it is annoying to see false red explanation points all over the place.  So until a fix can be applied, a safe alternative is to set this property in the java code by using the TableView's columnResizePolicy method: myTableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);