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.
NetBeans-JavaFX-Soma: #221 Product Version = NetBeans IDE Dev (Build 201004140201) (#ad38c7be819e) 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: - Drag and Drop Scene item from the Palette to the editor - Drag and Drop Ellipse item from the Palette to the content of the Scene in the editor - Press <Alt+Shift+F> to format the code Nothing happens. You need to click mouse to the editor to make the code formatting work.
This is not a bug. This is default editor behavior in whole netbeans.
Umm, so the complaint is that an editor shortcut does not work when the editor does not have a focus? I could be mistaken, but isn't this the way how MDI applications work?
No. The formatting does not work after the dragging an item from the palette. So the complaint is that editor does not get focus then the item was dropped on it.
Thanks for the clarification.
How to reproduce described behavior? Every time I D&D component from Palette to JavaFX editor it has focus and formating is possible. If it's still reproducible please reopen and provide steps to reproduce it.
Product Version: NetBeans IDE Dev (Build 201004190200) Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02 System: Linux version 2.6.31-20-generic running on i386; UTF-8; en_US (nb) Userdir: /home/lkj/trunk/javafx/build/testuserdir
NetBeans-JavaFX-Soma: #228 Exact steps to reproduce: - Drag and Drop Scene item from the Palette to the editor - Drag and Drop Ellipse item from the Palette to the content of the Scene in the editor (Do not click mouse on the editor, just drug) --------------------------------------------------- import javafx.scene.Scene; import javafx.scene.shape.Ellipse; import javafx.scene.paint.Color; Scene { content: [ Ellipse { centerX: 100, centerY: 100 radiusX: 40, radiusY: 15 fill: Color.GREEN } ] } --------------------------------------------------- - Press <Alt+Shift+F> to format the code Nothing happens.
Created attachment 97792 [details] IDE screenshot
I don't know much about formating but after D&D component from palette editor has focus and when you press Shift+Alt+F (Linux) JFXReformatTask.reformatImpl method is called. In case you press Shift+Alt+F (Linux) in different "context" for example when Palette Window has focus then for this particular shortcut you going to get different behavior/action (for example search action). Reassigning to formating.
.
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.