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 123371 - Dialogs are not shown in Preview
Summary: Dialogs are not shown in Preview
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-04 15:47 UTC by Alexandr Scherbatiy
Modified: 2008-08-22 11:55 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 2007-12-04 15:47:58 UTC
Steps to reproduce:
- Copy the following code to the editor:
-----------------------------------------------------
import javafx.ui.*;

Dialog{
    title: "Message"
    content: Label{ text: "Hello World!"}
    buttons:  Button{
        text: "OK"
    }
    
    visible: true
    
}
-----------------------------------------------------

- Enable the preview

  The dialog is not shown in the Preview
Comment 1 Alexey Butenko 2007-12-13 15:17:39 UTC
fixed in trunk
Now dialogs can be shown in preview, but without title.
Comment 2 Alexandr Scherbatiy 2008-01-17 10:12:23 UTC
The issue with Dialog class is fixed.

The issue with MessageDialog is reproduced.
Please, open the new issue if it is a different problem.

Code is:
----------------------------------------------------
import javafx.ui.*;

MessageDialog{
    title: "Message"
    message: "Hello World!"
    visible: true
}
----------------------------------------------------
Comment 3 Alexandr Scherbatiy 2008-07-10 09:48:52 UTC
Here is a sample with the recent SDK changes:
---------------------------------------------------------------------------
import javafx.ext.swing.*;

SwingFrame{
    content: Button {
        text: "Create a Dialog"
        action: function() {  
            SwingDialog{
                title: "Dialog"
                content: Label{ text: "Hello World!"}
                visible: true
            }
        }
    }
    
    visible: true
    
}
---------------------------------------------------------------------------
Comment 4 Oleg Barbashov 2008-07-22 18:02:00 UTC
Fixed.
Comment 5 Alexandr Scherbatiy 2008-08-22 11:55:14 UTC
verified