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.stage.Stage; import javafx.scene.Scene; import javafx.scene.control.Button; Stage { title: "MyApp" scene: Scene { width: 200 height: 200 content: Button { text: "Button" action: function() { } } } } --------------------------------------------------------------- - Format the code The result is --------------------------------------------------------------- Stage { title : "MyApp" scene : Scene { width : 200 height : 200 content : Button { text : "Button" action : function() { } } // <- Bracket is not properly formatted } } ---------------------------------------------------------------
*** Bug 175585 has been marked as a duplicate of this bug. ***
*** Bug 175664 has been marked as a duplicate of this bug. ***
*** Bug 175672 has been marked as a duplicate of this bug. ***
*** Bug 176660 has been marked as a duplicate of this bug. ***
According to the tutorial Building GUI Applications With JavaFX http://java.sun.com/javafx/1/tutorials/ui/syntax/index.html the correct code indentation for the object literals should be: -------------------------------------------------------- import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.shape.Rectangle; import javafx.scene.paint.Color; import javafx.scene.shape.Circle; Stage { title: "Declaring Is Easy!" scene: Scene { width: 300 height: 250 content: [ Circle { centerX: 150 centerY: 120 radius: 80 fill: Color.MAROON stroke: Color.INDIANRED strokeWidth: 10.0 }, //Circle Rectangle { x: 25, y: 80 width: 250, height: 80 arcWidth: 20 arcHeight: 20 fill: Color.web("#6699ff") stroke: Color.web("#003399") strokeWidth: 5.0 } //Rectangle ] //Content } //Scene } //Stage --------------------------------------------------------
*** Bug 176487 has been marked as a duplicate of this bug. ***
fixed http://hg.netbeans.org/javafx/rev/640723a1ece5
verified in Build 200911160201