aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 19557
    
  16

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
 
Similar Threads
script and javascript
Problem with struts-menu for second level submenu
JFrame and JMenu
convert swing to applet
public static final int in javafx