javafx

How do I do a discrete color flip animation with JavaFX?

Just started with JavaFX today and can't figure out how to do a discrete color flip on an object. I can set up a Timeline with two keyframes and have it set a color value that an object binds to it's fill variable... but I get interpolated colors when what I want is a discrete flip flop. ...

javafx scrollbar

Hello all, I'm very new to javafx. I am trying to add a horizontal scroll bar to my stage. I've got a very wide picture and I'd like to show only part of it and allow the user to scroll it. How is it done? ...

How to mix java swing and java fx in swing application?

i am developing a java swing application but i want to also use java fx with swing is there any resource for that told how to do that? ...

JavaFx Offline ability?

Recently we are looking for the possibility to use JavaFX as an offline RIA client. The idea is that user can use the netbook to work on the app with or without internet connection. With internet connection, user can interact with server through web services. Without internet connection, data and transaction will be stored on client an...

JavaFX or RIA desktop app (on dvd) also available on the web?

Is it possible to develop an application easily available on the web that also can be distributed on DVD (installer or started from the dvd)? For the moment, we use static html (frameset!) pages (generated by xml files), with one difference: pdf's are only on the DVD version, the web version only shows a preview of these files. Can thi...

JavaFx Source Code Auto Formatting

Question simple and quick: I have started to use Netbeans to write some code on JavaFx. I couldn't find working shortcut to make code beauty (auto formatting shortcut) Do you know where it is? PS: Alt + Shift + F doesn't works. ...

Duplicating custom nodes in JavaFX

As far as I understand, duplicating nodes in JavaFX should be done with the Duplicator.duplicate function. It works fine when duplicating nodes whose types are included in JavaFX library, for example def dup = Duplicator.duplicate(Rectangle{x:30 y:30 width:100 height:100}); dup.translateX = 10; insert dup into content; would insert a...

What makes a JavaFx 1.2 Scene Graph Refresh?

My first question =). I'm writing a video game with a user interface written in JavaFx. The behavior is correct, but I'm having performance problems. I'm trying to figure out how to figure out what is queuing up the refreshes which are slowing down the app. I've got a relatively complex Scene Graph that represents a hexagonal map. It s...

JavaFX url-proxy?

My computer is running behind proxy. I want to access url from JavaFX. for example say i want to show image from a url. But i haven't seen anyway to provide proxy settings for the connection(?). Please if someone can tell me how to do things in such situation? Thanks ...

Difference between JNLP and JavaFX

JavaFX provides a feature Drag-to-Install simply by dragging them out of your browser - you can then relaunch the applications directly from your desktop. How different is it different from JNLP? Or how easy or advantageous it is over JNLP in terms of distributing content over the web? ...

Can JavaFX read and distinguish between repeating key value pairs?

There seems to be multiple ways to pass parameters to a JavaFX application. This will make the key value pairs for arg_# and their value accessible. <script src="http://dl.javafx.com/1.1/dtfx.js"&gt;&lt;/script&gt; <script> javafx( { archive: "JavaFXApplication.jar", width: 1014, he...

Javafx with JMF

Hello, good Afternoon, I do not speak English, but I have a problem: I can't play videos with JMF using JavaFX for my GUI. I need the RTP JMF API and I'm getting this error: Unable to handle format: MPEG, 352x240, FrameRate=29.9, Length=126720 Unable to handle format: mpegaudio, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed,...

Javafx Mobile Applicaton

I've a small query. I want to develop a mobile application in JavaFX. How do I recognise the mobile's key? Is there any key constants for recognising them? ...

Multiple scenes in JavaFX

I'm writing a very simple application in Javafx where there is a single button with a textbox on the stage as one scene.Now,the behavior I want is that when I click the button I can load another scene with another button and a textbox on the stage and remove the button i clicked alongwith the previous textbox. So the click of a button sh...

JavaFX, Swing, or Flex for Java Desktop Applications

Most of the desktop application development I do is in Swing, and I'm curious to hear people's thoughts on using JavaFX and/or Adobe Flex for building desktop applications. Have you had success building desktop apps with these? Or would you stick with Swing for now and use tools to help make Swing development more productive? ...

Webcam access from JavaFx

Does the latest JavaFx version support streaming webcam video? Is it possible to get it through JMF in fx? ...

JavaFX JDK not found

I'm trying to install JavaFX for the first time and it says that version 1.6.0 or higher is required but none found. Also when I load a JavaFX app in firefox or chrome it says it can't find Java. This is strange since I have 1.6.0_07-b06 installed and I actively use it for development. Is there a certain place JavaFX looks? Is this a bu...

Right click in JavaFX?

How do I detect/handle a right click in JavaFX? ...

JavaFX timeline inaccuracies

I have two timelines in JavaFX that moves an image on the screen. One is in the onMouseEntered function to move the image left, and the other in the onMouseExited function to move the image back to the right. The keyframe has translateX starting at 0 and going to 10, and the other starts at 10 and goes to 0. The problem is that the two...

Handling mouse events in javafx

Can i set a function when creating an object like i can with variables? Given i have a container class and a CustomButton class: function doSomething():Void{} var button:CustomButton = CustomButton{ posX : 50; posY = 100; onMouseClicked: doSomething; } Short story: i need the main container object to handle mouse events th...