File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes menubar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "menubar " Watch "menubar " New topic
Author

menubar

Anders Andersen
Greenhorn

Joined: Dec 26, 2010
Posts: 1
I tried to make a menubarbut get an error saying
"found : javax.swing.JMenuBar
required: javafx.scene.Node[]
menuBar,
1 error
ERROR: javafxc execution failed, exit code: 1"

my code
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

You can't just mix Swing and JavaFX controls like that. You'll need to wrap your Swing components into Nodes. Check out this thread.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: menubar