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 150244 - Stage should contain Font
Summary: Stage should contain Font
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-10-15 15:59 UTC by Lark Fitzgerald
Modified: 2008-11-04 15:44 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 Lark Fitzgerald 2008-10-15 15:59:01 UTC
Tested using FX Cont trunk build 370 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 742, Build-ID: 2008-10-14_19-32-24 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810130704)
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)


In preview the Frame contained a text field with font information.  This was removed after they changed everything.  
This should now be put back:

            font: Font {
                size: 24
            }
Comment 1 Michal Skvor 2008-10-30 10:53:57 UTC
Fixed.
Comment 2 Alexandr Scherbatiy 2008-10-31 11:51:51 UTC
I use the promoted build  #62 	31-Oct-2008 03:01:09

- Drag and drop Text component to the editor:
The result is 
-------------------------------------
import javafx.scene.text.Text;
import javafx.scene.text.Font;

Text {
size: 24
x: 10, y: 30
content: "HelloWorld"
}
-------------------------------------

JavaFXApplication3\src\javafxapplication3\Main.fx:13: cannot find symbol
symbol  : variable size
location: class javafx.scene.text.Text
size: 24
1 error
Comment 3 Lark Fitzgerald 2008-10-31 17:14:24 UTC
This is actually two different issues.  The original issue is that a newly created project has

Stage{
    title: "Application title"
    width: 250
    height: 80
    scene: Scene{
        content: Text {
            x: 10, y: 30
            content: "Application content"
        }
    }
}

But it should also have:
            font: Font {
                size: 24
            }


The other issue is that when you DND a text Basic Shape from the palette you get:

            Text {
                size: 24
                x: 10, y: 30
                content: "HelloWorld"
            }

and size is no longer a supported api for Text.  This second issue HAS to be fixed and the first one is just a nice to 
have.

I have separted this second issue as: http://www.netbeans.org/issues/show_bug.cgi?id=152009
I have downgraded this issue.
Comment 4 Michal Skvor 2008-11-03 16:42:05 UTC
Fixed.
Comment 5 Lark Fitzgerald 2008-11-03 20:38:47 UTC
The code now shows:

            Font {
                size : 24
            }


When it should show

            font: Font {
                size : 24
            }

Continuous build #493 contains SDK 46 (768) 
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 6 Michal Skvor 2008-11-04 10:18:56 UTC
Fixed again :)
Comment 7 Lark Fitzgerald 2008-11-04 15:44:03 UTC
Continuous build #498 contains SDK 47 (772) 
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)