aspose 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
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: 598




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

Joined: May 03, 2008
Posts: 4543
    
    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: 598
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: 598


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: 4543
    
    5

No, you can't add a JFXPanel to a Group. JFXPanel doesn't extend Node.
 
Consider Paul's rocket mass heater.
 
subject: How come JFXPanel doesn't show up?