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.

Bug 133091

Summary: [Preview] Frame is shown in separated window if it is not declared in the end of file
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: Oleg Barbashov <obarbashov>
Status: VERIFIED FIXED    
Severity: blocker Keywords: RELNOTE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2008-04-17 11:40:34 UTC
Steps to reproduce:

- Create a JavaFX Script file:
-----------------------------------------------------
import javafx.ui.*;
import java.lang.System;

Frame{
    content: Label{ text: "Frame" }
    visible: true
}

System.out.println("Frame started!");
-----------------------------------------------------
- Enable Preview
  The frame is shown in a separated window
Comment 1 Andrey Yamkovoy 2008-04-17 12:17:48 UTC
The same behaviour as for interpreter.
Te workaround is like:

var a = Frame{
}

System.out.println();

return a;
Comment 2 Oleg Barbashov 2008-04-21 11:49:07 UTC
Compiler feature. Can't fix on plugin side.
Comment 3 Alexandr Scherbatiy 2008-04-22 09:56:57 UTC
See compiler issue JFXC-1121 The preview can't show a frame If it is not declared in the end of fx file.
http://openjfx.java.sun.com/jira/browse/JFXC-1121
Comment 4 Alexei Mokeev 2008-04-23 14:32:35 UTC
Well. There is some space for improvements in post-processing.
Comment 5 Oleg Barbashov 2008-06-27 13:56:33 UTC
Fixed.
Comment 6 Alexandr Scherbatiy 2008-07-02 13:09:59 UTC
verified
Comment 7 David Strupl 2011-10-19 12:02:43 UTC
Cleaning bugzilla categories ....