Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


What class do I have to derive for SalesReportTopPanel?
Thanks
Jack
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic