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 = NetBeans IDE Dev (Build 200910271401) (#32576b20b4bb) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor: -------------------------------------------------------- import javafx.scene.*; import javafx.scene.text.*; import javafx.scene.paint.*; import javafx.scene.shape.*; public class CoordinatsView extends CustomNode{ public var xMin: Number; public var xMax: Number; public var scale: Number; public var interval: Number; public var color: Color = Color.GREEN; public var content: Node[]; override function create():Node{ var dh = 25; var min = xMin * scale - dh; var max = xMax * scale + dh; var h = 7; var gridColor = Color.LIGHTGREY; Group{ content:[ Group{ scaleY: -1 content: [ if(interval == 0.0) then [ Text{ x: xMin * scale y: -3 content: "{xMin}" }, Text{ x: xMax * scale y: -3 content: "{xMax}"} ] else [ for(x in [xMin..xMax step interval], p in [x * scale] )[ Line{ startX: min startY: p endX: max endY: p stroke: gridColor } Line{ startX: min startY: p endX: max endY: p stroke: gridColor } Line{ startX: p startY: min endX: p endY: max stroke: gridColor } Circle{ centerX: p radius: 2 fill: color } Circle{ centerY: p radius: 2 fill: color } Text{ x: p - 10 y: -3 content: "{x}" } Text{ x: 3 y: -p content: "{x}"} ] ], Line{ startX: min endX: max stroke: color }, Line{ startX: max endX: max - h endY: h stroke: color }, Line{ startX: max endX: max - h endY: -h stroke: color }, Line{ startY: min endY: max stroke: color }, Line{ startY: min endX: -h endY: min + h stroke: color }, Line{ startY: min endX: h endY: min + h stroke: color }, ] } ] } } } -------------------------------------------------------- - Format the code Some last square bracket is not properly formatted: -------------------------------------------------------- ] ], // <- Square bracket is not properly formatted // .... Line {startY : min endX : -h endY : min + h stroke : color}, Line {startY : min endX : h endY : min + h stroke : color}, ] } ] // <- Square bracket is not properly formatted } } } --------------------------------------------------------
*** This bug has been marked as a duplicate of bug 175655 ***
verified in Build 200911160201