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 - [Preview] Frame is shown in separated window if it is not declared in the end of file
Summary: [Preview] Frame is shown in separated window if it is not declared in the end...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2008-04-17 11:40 UTC by Alexandr Scherbatiy
Modified: 2011-10-19 12:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ....