Javadoc for JavaFX (not JavaFX api!); from source? from project scenegraph? - java

The API JavaFX comes with is for the JavaFX langage, which I have one reason to learn, but more reasons not to. I know Project Scenegraph (scenegraph.dev.java.net, AKA Scenario) is ambiguously the same library. I would just generate javadocs from Project Scenegraph, but it hasn't seen an update since 2007 and the mailing lists are dead.
Does anyone know of a download for the JavaFX javadocs, or a way to download the source in order to generate them myself?

JavaFX uses scenegraph at the core for the UI, but JavaFX is a lot more than just scenegraph.

Related

Where can I find source code implementations for most javaFX 2 features?

I am currently developing a java application which GUI is based on javaFX. I see that there are a lot of very interesting features that javaFX libraries offer, yet I feel like I'm only scratching the surface in my project.
I have looked up a lot of javaFX classes' javadocs but I would like to know if there's a site that shows basic implementations of each feature, both the source code and the output.
Found a great oracle website that solves my problem: http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/index.html#HIGHLIGHTS/H%20T%20M%20L%20Editor
Basically it is a list of samples using most javaFX features, each having both the source code of the implementation and its output.

Exporting JavaFX2 to Android

i have a stupid question. Its possible to export JavaFX2 to Android. I have some Object in my JavaFX2 world and i would like to use this for a simple Android Application. I already exported some classes into the Android e.g. SimpleStringProperty, but with some i getting always an exception org.slf4j.LoggerFactory.getLogger (Ljava/lang/Class;)Lorg/slf4j/Logger;
I will be very happy for every ideas... big thanks!!
Update: is the amount of classes limited ???
slf4j is a logging wrapper which is unrelated to JavaFX.
Consult the slf4j documentation and the documentation for whatever logging framework you are wrapping in slf4j to help resolve your problem. If you include in your question the full stack trace for the error you receive you might be able to get more assistance.
There is currently (as of JavaFX 2.0) no public port of JavaFX to Android and Android is not a supported platform for JavaFX. For the majority of the JavaFX functionality, I'd advise waiting until when (and if) Oracle release an Android build for JavaFX before trying to use it on Android.
There is a reasonable chance that the property and binding framework from JavaFX (javafx.beans.* packages) would work on Android as that code was designed to work independently of the rest of JavaFX. The property and binding part of JavaFX is currently not open source, though a lot of the rest of the JavaFX source code is. The framework was developed to run on top of JavaSE and not Android, so some Android specific source code changes may be required to allow the JavaFX property and binding framework to run on Android. Also, before doing something like that I would advise checking the JavaFX license (which is the same as the Java SE license).

Netbeans Editor Library?

Netbeans seems to say in several places that it supports a library to just host the "Netbeans editor" widget in some other program. It has some weird documentation that seems to say a lot, but doesn't really say much about how to use it: http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib2/architecture-summary.html
I can't seem to find any download for the "Netbeans editor library" (1 or 2), and the documentation they provide says to download the entire mercurial repository, which doesn't really help me, since it doesn't tell me what is part of this "library" and what is not.
If someone could point me to a download for this library, or some minimal documentation about how to use it, that would be great. I've already seen the blog post here, but it doesn't really help with getting the library, and it seems to be talking about classes which I can't find in the Netbeans sources I downloaded (Maybe a different version?)
The NetBeans editor is part of the NetBeans platform and thus is part of either NetBeans IDE itself or the separate platform download.
The platform itself can be downloaded from here: http://platform.netbeans.org/platform-get.html
But I'm not sure if you can use a platform module outside a platform application. If that should be possible it most probably will be a very complicated thing to do.
You might want to have a look at this article:
http://platform.netbeans.org/tutorials/nbm-htmleditor.html which explains how to create a standalone HTML editor based on the NetBeans platform by simply customizing the platform.

Where can I get an updated version of JOGL? Possibly working with NetBeans?

I need possibly detailed instructions on how to get an updated version of JOGL, and help in configuring NetBeans (6.9.1) to run with it (and give code hints and such).
Please bear in mind that I am no expert in the field of Java, and it's just been a few weeks since I started, so the most detailed instructions possible would be best :)
Thank you!
JOGL has moved to the Kenai project. JOGL 1.1.0 is pretty stable. If you want the new OpenGL 3 features, you'll need to download the beta 2.0 version here...
http://download.java.net/media/jogl/builds/archive/jsr-231-2.0-beta10/
Getting JOGL setup is fairly simple. First, you'll need your build environment to include the jar files you unzip. You can do this in netbeans by right-clicking on your project and adding the jars to your class path settings. This will also add code completion from that API.
Since JOGL also ships with native code to work with the OpenGL drivers, you will need the JVM to point the compiled libraries. Specifically, you need to tell netbeans to point the java.library.path to the directory holding the library files. If you get an UnsatisfiedLinkError, you're not linking to those native files correctly.
You'll find an example of doing that here.
http://forums.netbeans.org/topic11122.html
Once you get that setup, there is a netbeans OpenGL pack, which provides some OpenGL widgets to the matisse gui builder. It's not completely necessary, but kind of nice.
Keep in mind, though, JOGL 2.0 is still in beta, and if you don't absolutely need OpenGL 3, you should stick with the 1.1 build provided on that site.
JOGL briefly moved to Kenai, but it's now at http://jogamp.org/. If you want the last stable version of JOGL (1.1.1a), you should get it at http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/. If you want the new 2.0 beta version, you should get it at http://jogamp.org/deployment/autobuilds/. The current autobuild is in "jogl-b207-2010-11-09_04-31-10/build" in that directory.
I haven't seen a NetBeans tutorial for JOGL 2.0 , but there are some for Eclipse at http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/ and https://sites.google.com/site/justinscsstuff/jogl-tutorials.

JavaFX Script and Java

Simple question: Can I mix in my desktop application Java and JavaFX Script code? If it is possible could you provide me with some link with examples?
Or could I pack my custom made javafx CustomNode-s in a jar and use them in my project side by side with standard SWING components?
This article gives an example of calling JavaFX from Java, using the Scripting API.
Yes, you can mix Java and JavaFX.
According to one of the FAQ entries:
In addition, developers can use any Java library in their JavaFX applications. This allows JavaFX applications to take advantage of the rich JavaFX UI libraries, as well as the amazing breadth of functionality offered by Java.
The official source of information, including tools downloads, FAQ, and tutorials is the JavaFX web site.
I suggest you to look at dotFX. It can be useful for you. It has a netbeans plugin,too.
Read first here for get more information.
You can use a JavaFX 2.0 with Swing
http://javafx.com/about-javafx/
If you install the JavaFX 2.0 runtime first, then you launch an example http://download.oracle.com/otndocs/products/javafx/samples/SwingInterop/index.html
Supposedly all you have to do is drag and drop the JavaFX application to your desktop in order to make it a desktop application. You can also use Java code in a JavaFX application. Not sure about the other way around.
Yes Javafx and java apis can be mixed and used in your application without any problems.

Categories