File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes How come JFXPanel doesn't show up? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "How come JFXPanel doesn Watch "How come JFXPanel doesn New topic
Author

How come JFXPanel doesn't show up?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590




Why
findCustomerPanel = new findCustomerPanel();
displays nothing
Thanks
Jack
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

Jacky Luk wrote:Why
findCustomerPanel = new findCustomerPanel();
displays nothing


Well, the new panel isn't added to any visible component hierarchy, so where should it display? JFXPanel isn't a top level window.


luck, db
There are no new questions, but there may be new answers.
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
Darryl Burke wrote:
Jacky Luk wrote:Why
findCustomerPanel = new findCustomerPanel();
displays nothing


Well, the new panel isn't added to any visible component hierarchy, so where should it display? JFXPanel isn't a top level window.


Ah, you just refreshed my memory, it should be JFrame, thanks
got it working now
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590


Now I am working on this one, the problem I am having is I can't add JFXPanel to Group, should be a JavaFX question....
Thanks
Jack
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

No, you can't add a JFXPanel to a Group. JFXPanel doesn't extend Node.
 
 
subject: How come JFXPanel doesn't show up?