Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 256522 - Incorrect FXML error flagged: Constant 'CONSTRAINED_RESIZE_POLICY' is not defined for 'TableView'
Incorrect FXML error flagged: Constant 'CONSTRAINED_RESIZE_POLICY' is not def...
Status: NEW
Product: javafx
Classification: Unclassified
Component: Editor
8.1
PC Windows 7
: P3 with 3 votes (vote)
: TBD
Assigned To: Svata Dedic
issues@javafx
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-11 17:32 UTC by swpalmer
Modified: 2015-12-04 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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

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

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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo