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

Summary: Incorrect FXML error flagged: Constant 'CONSTRAINED_RESIZE_POLICY' is not defined for 'TableView'
Product: javafx Reporter: swpalmer <swpalmer>
Component: EditorAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Image of Error

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

STEPS:
  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.

ACTUAL:
  Constant 'CONSTRAINED_RESIZE_POLICY' is not defined for 'TableView'

EXPECTED:
  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);