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.
build: M0 NB: 6.0 Steps to reproduce: - Create a JavaFX application - Copy the following code to the JavaFX editor ----------------------------------------------- import javafx.ui.*; Frame { title : "Frame" width: 100 height: 100 content: Label { text : "Hello World!" } visible: true } ----------------------------------------------- - Disable the preview - Run the application - Enable/disable the preview some times The exceptions pops up: java.lang.ClassCastException: org.netbeans.core.output2.OutputDocument cannot be cast to org.netbeans.modules.editor.javafx.FXDocument at org.netbeans.modules.editor.javafx.FXKit$ToggleFXPreviewExecution.actionPerformed(FXKit.java:629) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:266)
Enable/Disable the preview some times The ClassCastException pops up: java.lang.ClassCastException: org.netbeans.modules.editor.NbEditorDocument cannot be cast to org.netbeans.modules.javafx.editor.JavaFXDocument at org.netbeans.modules.javafx.editor.JavaFXEditorKit$ToggleFXPreviewExecution.actionPerformed(JavaFXEditorKit.java:97) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:266) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Has to be fixed. Andrey, please check
Fixed for Beta1 milestone
Verified in Netbeans 6.0 Beta1 with JavaFX plugin version 1.0.2