Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29-07-2009
Member
 
Join Date: Nov 2008
Posts: 88
How to create Menu Bar in JavaFX

I have a web application where i need to Create a Menu Bar with JavaFX, this is the requirement of an third party module they want to enable the menu bar in their web page, could i be able to create the menu bar in javafx, if yes then please guide me on that side

Thanks
Reply With Quote
  #2  
Old 29-07-2009
Member
 
Join Date: Jan 2009
Posts: 96
Re: How to create Menu Bar in JavaFX

The JavaFX APIs do not come with a menu GUI component. Maybe the JavaFX team at Sun does not think it is an important thing in RIA. JavaFX is adopting a graphical "node-centric" approach to UI development, so nearly everything in a JavaFX user interface is a Node.

Code:
Group {
    transform: []     
    content: [ImageView {
        transform: translate(180,72)
        image: Image { url: bind home }
        onMouseEntered: operation(e:MouseEvent) {              
               home=".//images//home_2.bmp";
               }
        onMouseExited: operation(e:MouseEvent) {              
               home=".//images//home_1.bmp";
               }
    }
Reply With Quote
  #3  
Old 29-07-2009
Member
 
Join Date: Jan 2006
Posts: 6,878
Re: How to create Menu Bar in JavaFX

JavaFX Script is a scripting language designed to facilitate the creation of rich client and Internet applications. When you want to create your own custom node, you'll extend the CustomNode class, giving it your desired attributes and behavior. When you develop applications with JavaFX Script, it's useful to have a JavaFX Script development environment installed.
Reply With Quote
  #4  
Old 29-07-2009
Member
 
Join Date: Feb 2009
Posts: 117
Re: How to create Menu Bar in JavaFX

Compile and run the SomeBasicWidgets.fx program, JavaFX provides us a class javafx.ext.swing.SwingComponent, which can wrap a SWING component into a JavaFX node. We know that we can build complicated menus in SWING. Some IDEs designed specifically for JavaFX Script, as well as JavaFX Script plug-ins for other Java development environments, are available. When you want to create your own custom node, you'll extend the CustomNode class, giving it your desired attributes and behavior.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to create Menu Bar in JavaFX"
Thread Thread Starter Forum Replies Last Post
Create dialog box in Javafx Messenger Software Development 5 26-07-2010 10:33 AM
How can I create JavaFX page in j2ee web application Marjorie Software Development 5 25-07-2010 03:26 AM
How to create a JavaFX applet SoftWore Technology & Internet 1 15-07-2010 03:46 PM
How to create Menu using ASP? Solitario Software Development 4 05-02-2010 03:44 AM
How to create drop down menu in php Sukhvinder Software Development 3 06-08-2009 11:42 AM


All times are GMT +5.5. The time now is 01:30 AM.