JavaFX & Web Services PDF Print E-mail
Written by martcon   
Wednesday, 20 May 2009 08:53

JavaFX supports RESTful Web Services (REST stands for Representational State Transfer) for transferring data using java.io.InputStream and java.io.OutputStream. For example, see http://blogs.sun.com/rakeshmenonp/entry/javafx_webservices.

As a RESTful Web Service is essentially a means of accessing a collection of resources it is not always appropriate to use this model. However, you can call other web services by creating a Web Service Client and invoking this client in your JavaFX application. This is described in http://netbeans.dzone.com/news/javafx-client-invoking-metro-e.

 
JavaFX Device Manager PDF Print E-mail
Written by martcon   
Monday, 11 May 2009 10:01

Occasionally, we have encountered errors when trying to run the mobile emulator for JavaFX. It should be noted that there is an icon for the JavaFX SDK 1.1 Device Manager on the bottom right of the desktop. Right clicking on this icon enables it to be restarted. You can also see output from this device manager by selecting the option -Xenableoutput:

device-manager.exe -Xenableoutput

Typically the device-manager.exe program is located in C:\Program Files\NetBeans 6.5\javafx2\javafx-sdk1.0\emulator\bin assuming you installed NetBreans in C:\Program Files.

Restarting the device manager can get the mobile emulator working again.

 
Problems with Installing JavaFX PDF Print E-mail
Written by martcon   
Tuesday, 05 May 2009 13:16

If you've tried to installed or update JavaFX in conjunction with Netbeans recently you may have encountered the following error or similar:

No module providing the capability javafx.sdk.v1_1 could be found.

There are currently issues regarding Netbeans 6.5.1 and JavaFX. However, there also appear to be issues regarding JavaFX and Netbeans 6.5. While it installed initially for us a scheduled update of plugins for Netbeans resulted in the above error. Uninstalling and reinstalling Netbeans did not solve the problem. The following blog proved very helpful however:

http://www.weiqigao.com/blog/2008/12/11/javafx_1_0_on_linux_netbeans_plugin.html

While this blog is for LINUX it worked on a Windows platform for us.

 

 

 
Changing an Image in JavaFX PDF Print E-mail
Written by martcon   
Monday, 27 April 2009 11:11

When using JavaFX you may often want an image in a scene to be changed to another image when you click on it with the left mouse button. The simplest way to achieve this effect in JavaFX is as follows:

// Declare these variables for access by the scene.

// Image 1

var image1 = Image { url:{__DIR__}images/Image1.png" }

// Image 2

var image1 = Image { url:{__DIR__}images/Image1.png" }

// Declare Temporary variables for storing these images.


var tmpImage1: Image = image1;


var tmpImage2: Image = image2;

// Create the Image View.

ImageView {

                      // Flag denoting whether image2 is being used.

                     var image2Used = false;

                    // Bind the image in this ImageView to image1

                    image: bind image1

                   // Function called in response to the image being clicked by the left mouse button.

                   onMouseClicked:function(e:MouseEvent):Void {

                                // If Image 2 is not being used set the image as Image 2 and set the flag to true. 

                                if(image2Used == false) {

                                             image1 = tmpImage2;

                                           image2Used = true;

                                 }

                                // If Image 2 is being used the image as Image 1 and set the flag to true.

                                else {

                                            image1 = tmpImage1;

                                           image2Used = false;

                             }

                  }

}

 

 
New Section on Website: Value Proposition PDF Print E-mail
Written by martcon   
Wednesday, 22 April 2009 17:11
We have added a new section to our Website. Clicking on 'Value' in the menu gives details on the many applications that Vertoda can be used for as well as the Vertoda value proposition. See http://www.vertoda.com/index.php?option=com_content&view=section&id=12&Itemid=72.
 
<< Start < Prev 11 12 13 14 15 16 17 18 19 Next > End >>

Page 13 of 19
RocketTheme Joomla Templates