javafx

Java FX and Database Connection

I want to write a JavaFX program with Database Connection(MYSQL). I did not know how to create a connection in program. And the methods I found on internet is not working for me. (Possibly because of the version difference or something.) Can anyone give the procedure to establish a connection and run a query from the program for the late...

What's the latest on JavaFX and mobile phones?

What's the latest on JavaFX mobile? I'm having trouble finding any relatively current info regarding what phones (if any..?) are JFX compatible, how to distribute applications to said phones, etc. I have a current desktop application, and another semi-related mobile project is on the horizon (within the next couple months). If I can use ...

How do I force a variable to be initialized in a JavaFX object?

I am making a javaFX class and I need one of the variables to be initialized in order for it to work (in my program there's no default value I can use). This is the best I've come up with, but I'd like something that wont compile unless you initialize the variable. Example Class: Public class Class1{ public-init var var1:String; ...

JavaFX Scripts do not seem to work on other computers

When I bring my app to another computer the two buttons that should either open a file browser, or take in a file path to open a file both don't work. I don't understand why. It works perfectly fine if I compile it within Netbeans. package maxsublistsum; import javax.swing.JFileChooser; import javax.swing.filechooser.FileFilter; impor...

Enabling Debugging Logs while loading JavaFX Applet

My JavaFX app is working when executed via the JavaFX Eclipse plugin. But when I try to embed it into my web project, it is not being rendered properly and after a while a black rectangle is loaded in it's place. Here is the code for loading my JavaFX Application: <script src="http://dl.javafx.com/1.2/dtfx.js"&gt;&lt;/script&gt;...

Call C++ APIs from Javafx UI for a desktop application

I am interested in using Javafx for my visual content for a desktop application and call native,unmanaged C++ functions ( on events from the Javafx views). Is this possible? Can someone explain with an example? ...

upload BLOB file into MYSQL server: netbeans JAVAFX

im noob trying to store an avatar together with some details about a "user" into a mysql database then display them using netbeans JavaFX. i am able to display user details one at at time but i am unable to store and display an avatar together with the details. thanks in advance. ...

Constructor with arguments on JavaFX?

Is it possible to create a constructor with arguments on a JavaFX class? This can be achieved in Java by: MyObj(String foo, String bar) { // ... } Is this possible in JavaFX? i.e. // creating an Object Literal without the specified arguments must result in compile error var myObj = MyObj {} ; // While this s...

JavaFx: How to develop a visual rich menu interface?

I'm trying to develop a desktop program, unifying java and javafx. For now, I want to know recommendations about how to create a rich menu interface for my program, something like the menu of Office 2007 or Modellus. So, what you recommend to start developing that? ...

Overriding JavaFX MediaPlayer class

I haven't tried it yet, but is it possible to extend JavaFX's Media class used in MediaPlayer class, content fetching part, to perform certain operation on file, before playing it in real-time? I would like to implement rapidshare fetch and decompress processor on content URL. ...

Working with XML in JavaFX 1.2

Hi I'm trying to develop a small personal application for JavaFX 1.2 working in a mobile and I can't find the way to open a locally stored XML. Any ideas? ...

JavaFX and Generics

I am just starting to look at JavaFX and it seems like a nice language -- reminds me of Scala without the sophisticated (complex) type system. Is there any word on when generics will be added? I hate going back to "Java 1.4" style coding. Thanks. ...

JavaFX and CSS Basic ?'s (regarding Checkboxes)

I have a couple questions regarding JavaFX (1.3) and CSS. First of all, when I create a CheckBox node and set its styleclass, I can't actually get the checkbox to show up. It just looks like a text-label. Do I have to specify something specific to actually get the checkbox to appear? Also, what is the CSS class/id I would use to modify ...

Playing an audio file from FTP in JavaFx

I have a scenario. I have an audio file on an FTP location. Its a JSP applicaiton. I want to do streaming on my webpage. What I am thinking to open an inputstream on that file that is on ftp location. And connect that input stream to JavaFx player. (never coded Javafx before) So JavaFx will play that buffer. My approach is right? ...

Passing arguments on a jnlp file

Is it possible to pass maven-like arguments on a JNLP file? <jnlp spec="1.0+" codebase="${javafxCodebase}" href="Foo.jnlp"> <information> <title>${javafxTitle}</title> <vendor>${javafxVendor}</vendor> ... </information> ... </jnlp> And if so, who will pass these data to the jnlp file? What comes to m...

LDAP JNDI Authentication fail??

Hi there, I'm attempting to build a JavaFX for browser use that will handle an authentication prompt against a LDAP Server. When launching JavaFX as a desktop application, I am able to authenticate against the LDAP server using JNDI. However, when I launch JavaFX on the browser, I will get the following error: javax.naming.Communicat...

Debug Applications in JavaFX Mobile Emulator

Is it possible to debug application that is running in JavaFX Mobile Emulator? Would it be possible to enable logging on apps that are running on JavaFX Mobile Emulator? if so how? ...

How can I suppress warnings in NetBeans 6.9.1?

On teaching JavaFX, we use some older files containing Swing components. They run OK in NetBeans 6.8, but in NetBeans 6.9.1 many following warnings are generated: warning: [warnonuse] Package javafx.ext.swing has been used. import javafx.ext.swing.SwingToggleButton; Is there any way to suppress generation of these warnings? ...

exception: Connection refused: connect.

Hi all, I am trying to connect a client (which is behind the company's proxy) to a server (JBoss AS 5.0) which is hosting an application (JavaFX). And I am facing the following error. exception: Connection refused: connect. java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Metho...

JavaFX vs Flash, which is good to make online game

I am going to create a online game, so what is better, JavaFX or Flash? ...