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.
Steps to reproduce: - Copy the code to the editor ---------------------------------------------------------------- import javafx.ui.*; import java.lang.System; var a = 101; Frame { content: BorderPanel { bottom : Button{ text: "Press Me" action: operation() { System.out.println(a); Dialog { title: "Dialog" content: Slider { value: bind a } } } } } visible : true } ---------------------------------------------------------------- - Enable the preview - Press the button JavaFX Runtime Exception pops up. If you run the app and press the button the exception will be written in the output. The Runtime exceptions from the sample pop up as usual NetBeans exception. It confuses users because it looks like that something happened with the editor.
The same is for the System.exit() operation: - Copy the following code to the editor: ---------------------------------------- import javafx.ui.*; import java.lang.System; Frame { width: 200 height: 200 content: Button { text: "Click Me" action: operation() { System.exit(0); } } visible: true }; ---------------------------------------- - Enable the preview - Click the button on the preview The exception pops up: uncaught FX exception: org.netbeans.ExitSecurityException org.netbeans.ExitSecurityException: Illegal attempt to exit early
moving opened issues from TM <= 6.1 to TM=Dev
Restoring original TM, sorry for any inconvenience
Fixed.
Exceptions are stored in Preview Output window. Verified in 2008-09-12_02-01-58.zip