aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes I wonder if JPanel and Stage can't be added to Group, how can I create a Panel? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "I wonder if JPanel and Stage can Watch "I wonder if JPanel and Stage can New topic
Author

I wonder if JPanel and Stage can't be added to Group, how can I create a Panel?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590


What class do I have to derive for SalesReportTopPanel?
Thanks
Jack
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

I think you are talking about having JavaFX in a Swing application.
Did you go through the documentation to understand more about it?

The createScene() method would have all JavaFX stuff added to the scene. This scene is then set to the JFXPanel which is a Swing panel - which can then be freely added to a Swing container like JFrame.

So, the SalesReportTopPanel should be JavaFX stuff.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I wonder if JPanel and Stage can't be added to Group, how can I create a Panel?