*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: I wonder if JPanel and Stage can't be added to Group, how can I create a Panel?
 
Similar Threads
JMF from JAR
JXPanel is not loading
How to leave out the grey area and change the font size of the button?
JTable serialization problem
How come JFXPanel doesn't show up?