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.
Summary: | Code formatting does not properly format brackets indentation in an object literal | ||
---|---|---|---|
Product: | javafx | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Editor | Assignee: | Anton Chechel <manowar> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 173487 |
Description
Alexandr Scherbatiy
2009-10-29 13:37:56 UTC
*** 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. *** verified in Build 200911160201 |