javafx

Javafx and wav files

Hi. I'm playing around with javafx and I have modified the code of the MediaPleyer demo trying to reproduce a wav file. It doesn't work. /* * Copyright (c) 2009, SUN Microsystems, Inc. * All rights reserved. */ package javafx.tools.fxd.demos.mediaplayer; import javafx.scene.*; import javafx.scene.media.*; import javafx.stage.*; va...

Getting the global coordinate of a Node in JavaFX

How can I get the actual position of a node in the scene. The absolute position, regardless of any containers/transforms. For example, I want to translate a certain node a so that it would temporarily overlap another node b. So I wish to set his translateX property to b.globalX-a.globalX. The documentation says: Defines the X coord...

Success stories for JavaFX

Did anyone here a real company using JavaFX for real life applications? I did a shallow search about JavaFX usage, and found almost no heavy usage case. Anyone knows companies which actually using JavaFX? I'm really afraid that JavaFX (which is being currently the only somewhat opensource RIA platform) will not survive. Update this que...

what is the use of JavaFX script?

hi all, I am new to this term JavaFX script, just want to know more on the use of JavaFX scripts. thanks you. ...

Deploying a JavaFX application onto a J2ME handset

I've generated a barely minimal JavaFX (1.2) app, using Netbeans 6.7.1. Now I have come to put the app on a) an emulator b) a device. I can't seem to find anywhere in the tooling which will help me do either. what am I missing/doing wrong any thoughts on a very easy handset to get up and running? ...

Compare between FLEX, JavaFX and Silverlight

Has anyone built application to compare the performances of them? (performances like speed, different between GUI etc.) If no, Can anyone recommend me which function (in each of them) should I use to compare them? Thanks ...

Java Web Start window title problem

I've written a JavaFX application that uses Java Web Start. For some reason, the window title is always "Java" (on Linux) or blank (on Windows). However, the desktop icon has the correct application title and image. From what I've found so far, the important bit here is the information > title element in the JNLP file. What am I mis...

[JavaFX] changing the content of HBox in Tile

When changing the content of an HBox in a Tile, the Tile elements gets sorted as if it has only two columns. For example, running the following script and clicking the button would display the objects tiled in 2 columns, instead of four: var grid = AnimGrid { columns: 4 content: for (i in [1..10]) HBox{content:[Text {content...

Are there code examples comparing Scala and JavaFX Script?

I am studying JavaFX Script and trying to compare it to Scala, which is another very interesting new language for the Java platform. In the official Scala site I found this example, which is a Quick Sort implementation. I then wrote the following equivalent JavaFX Script program (using NetBeans IDE 6.7.1): package examples; function s...

JavaFX Trigger an action while a button is pressed

I'm trying to make a scroll button using a ImageView that should scroll some images while it's pressed. I tried to do it with the primaryButtonDown property of the MouseEvent, but it freezes the application: ivbutton.onMousePressed = function (e) { while (e.primaryButtonDown){ //Scroll Stuff } Do you know a way to cre...

JavaFX or Adobe Flex? Which shines in which case?

I am new to both the technologies.Which scenarios is better for using Adobe Flex , and which is the best place to use Java Fx? ...

How does the bind operator work in JavaFX?

How is the bind operator implemented in JavaFX? What happens behind the scenes? Does every variable in JavaFX implement some kind of observer API so that listeners can attach to it or is it a trick in the VM? ...

Migrate Java Applet to what/where??

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It's a tool to create custom labels, so we need drag-n-drop and other related UI components. To which technogly will you migrate given the code base is in Java. Applet -- No Java FX -- Adoption rate is too low...

Best practices on seperating debug/developing code java/javafx

I am working on a game in JavaFX and I'm sending people the compiled game once in a while for them to try out. As I'm still in the middle of developing it, I have several pieces of code intended solely for developing/debugging. One example is a gamespeed slider that is of great use for me while testing, but it is VERY buggy and can onl...

DId Quicktime 7.6.5 Windows fix QT for Java? Best video for JavaFX?

Greetings, I have read that QuickTime for Java is esentially broken on both Windows 7 and Snow Leopard. I can't tell how broken -- doesn't seem broken, but could just be my setup. I'm trying to determine whether this is a good technology stack, or if I should look elsewhere. Objective: I want to build a specialized desktop video playe...

Dynamically changing a keyframes time attribute in JavaFX

I am making a game in JavaFX and have implemented a slider for controlling the game speed. I have a simple slider (javafx.scene.control.Slider) and I'm binding the time attribute for the gameloop to the value I get from the slider. The slider only really works when increasing the gamespeed. If i decrease it, the gameUpdate() will stop ...

How to simplify SVG code?

Is it possible to simplify / clean up svg code by replacing the use-tags with standard svg elements? Maybe an inkscape plugin? Haven't found anything... Background: I'm converting some svgs to javafx graphics (.fxz) with javafx's production suite. And the tool doesn't understand the <use> element. ...

Are there any specific requirements for a Swing component to be run in JavaFX environment?

My company have a web application product for distribution planning and scheduling. An important part of it is a gantt chart component where user can fine tune the schedules. Currently the gantt chart component is pure javascript+dhtml. I am currently looking into the possibility of moving to JavaFX to get richer interactivity and gener...

Applications icons in JavaFX

Using JavaFX 1.2 I am trying to get custom icons on my app and they are being totally ignored. Am I doing something wrong or is it a bug? Stage { title: "My App" width: 1024 height: 768 scene: bind current_scene iconified:true; icons:[ Image { url: "{__DIR__}res/icon16x16.png" }, Image { url: "{__DIR__}res/icon32x32.png" }, ...

Pros and Cons of JavaFX and Silverlight

I know there is already a question about the performance of Flex, JavaFX, and Silverlight. My question is a bit more broad: We are evaluating the merits of JavaFX and Silverlight to serve as the GUI technology that controls/configures our back-end service (currently written in Java). The service and GUI are usually on the same machine, ...