This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 580


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

Joined: Oct 16, 2003
Posts: 1075
    
  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?
 
Similar Threads
JXPanel is not loading
JMF from JAR
How come JFXPanel doesn't show up?
JTable serialization problem
How to leave out the grey area and change the font size of the button?