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


Win a copy of Spring in Action this week in the Spring 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: 601




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

Joined: May 03, 2008
Posts: 4642
    
    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: 601
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: 601


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

No, you can't add a JFXPanel to a Group. JFXPanel doesn't extend Node.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How come JFXPanel doesn't show up?