Bug 148671 - Frame has become Stage
Frame has become Stage
Status: VERIFIED FIXED
Product: javafx
Classification: Unclassified
Component: Unsupported
6.x
All Windows Vista
: P2 (vote)
: TBD
Assigned To: Michal Skvor
issues@javafx
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-29 19:54 UTC by Lark Fitzgerald
Modified: 2008-09-30 11:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-09-29 19:54:56 UTC
Tested using FX Cont trunk build 258 with SDK:
Product: javafx-1.0dev Platform: windows-i586 Build-Number: 443 Build-ID: 2008-09-29_05-10-40 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 20080922)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Palette > Applications > Frame has invalid source
1. DnD of Frame onto editor gives:

import javafx.stage.Frame;
import javafx.scene.Scene;

Frame {
    title: "MyApplication"
    width: 200
    height: 200
    closeAction: function() { 
        java.lang.System.exit( 0 ); 
    }
    visible: true

    scene: Scene {
        content: []
    }
}

It should now be:

import javafx.stage.Stage;
import javafx.stage.Decoration;
import javafx.scene.Scene;

Stage {
    decoration: Decoration { title: "MyApplication"}
    width: 200
    height: 200
    visible: true

    scene: Scene {
        content: []
    }
}


Note, that I'm gray on closeAction so I removed it

    closeAction: function() {
        java.lang.System.exit( 0 );
    }

Since it doesn't have a equivalent in Stage, but there should be a FX.exit(), FX.addShutdownActions() and 
FX.removeShutdownActions() equivalent somewhere.
Comment 1 Michal Skvor 2008-09-30 09:28:30 UTC
Fixed.
Comment 2 Alexandr Scherbatiy 2008-09-30 11:52:50 UTC
verified in 2008-09-30_13-16-37.zip 


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo