I'm with you on all you've said. Unfortunately Oracle doesn't seem to share
our views on that.
I've attached JXScene working for JavaFX 1.3. Thank Jim Clarke for that.
From what I've tested so far everything seems to be working fine except for
the new preview control: popupmenu. Which I'm going to try to test again if
netbeans decides to cooperate this time :)
And also if you need to set the swing look and feel do it after creating the
JXScene.
Cheers,
Pedro Duque Vieira
Hi guys
Regards
bit
--
You received this message because you are subscribed to the Google Groups
"JFXtras Developers" group.
To post to this group, send email to jfxtr...@googlegroups.com.
To unsubscribe from this group, send email to
jfxtras-dev...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/jfxtras-dev?hl=en.
I integrated your changes into the main codeline. The new scene
extraction technique was not compatible with SceneToJComponent, which I
have deleted.
I made a few minor changes along the way... I changed the name of the
two parameter setScene function to setScript so it is consistent. I
also added some constructor methods so you can do a one line invocation
like this:
JXScene theScene = new JXScene(sceneClass);
It also seems that to get the proper size on layout you need to
initialize the scene contents before the init block by overriding the
children sequence. I updated our sample code to do this.
Finally, I added support for script invocation, so you can simply pass
in a valid JavaFX program and it will extract the Scene from it. This
makes it much easier to integrate with existing JavaFX applications, and
removes some of the guess work around what the JavaFX file has to look
like (it can either extend Scene, extend Stage, or return an instance of
Scene or Stage).
Cheers,
--Steve
P.S.: No more free integrations... you have to check-in the code
yourself next time. :-)
--
--Steve
blog: http://steveonjava.com/
The problem with your example was that the JavaFX file did not extend
javafx.scene.Scene.
However, I figured that what you were trying to do (simply pointing to a
valid JavaFX application) was pretty common, so I implemented it. Your
example should now work unaltered.
Here is a link to the latest source code if you want to try it out:
http://code.google.com/p/jfxtras/source/browse/common/src/org/jfxtras/scene/JXScene.java
I hope you don't mind, but I also included a modified version of your
sample in our test suite.
Cheers,
--Steve
--
--Steve
blog: http://steveonjava.com/
Hi bit man,
You must create a class that extends Scene hence the ClassCastException:
your javafx class that you're passing to jxscene is a Stage.
I've never managed to get the video working using jxscene. Only made it to
work on Windows XP.
If you want to use javafx video you must reference the jmc.dll. You can do
this with the following arguments: java -Djava.library.path=<path to
jmc.dll file>
I'm guessing it doesn't work on Vista and 7 due to security reasons. As I'm
not an expert on this, I haven't managed a work around, although I haven't
investigated this further.
Cheers,
Pedro DV
"I made a few minor changes along the way... I changed the name of the
two parameter setScene function to setScript so it is consistent. I
also added some constructor methods so you can do a one line invocation
like this:
JXScene theScene = new JXScene(sceneClass);"
Sounds good.
"It also seems that to get the proper size on layout you need to
initialize the scene contents before the init block by overriding the
children sequence. I updated our sample code to do this."
Hum, I don't get this problem. Could you explain it a bit better?
"Finally, I added support for script invocation, so you can simply pass
in a valid JavaFX program and it will extract the Scene from it. This
makes it much easier to integrate with existing JavaFX applications, and
removes some of the guess work around what the JavaFX file has to look
like (it can either extend Scene, extend Stage, or return an instance of
Scene or Stage)."
Also sounds good, but should be noted on the javafx docs or somewhere else
that the stage class and its accompanying configurations won't be taken into
consideration.
"P.S.: No more free integrations... you have to check-in the code
yourself next time. :-)"
Sounds fair :). I haven't done so already because:
1- I'm still testing somethings which aren't working, namely the Popup
javafx preview control.
2- I don't know how to work with the new versioning system. Have to take
sometime to study it but right now I'm very busy trying to get a release of
Modellus(my app) till the end of this month.
Thanks for doing the integration for me :)
Cheers Steve,
Pedro DV
-----Original Message-----
From: jfxtr...@googlegroups.com [mailto:jfxtr...@googlegroups.com] On
Behalf Of Stephen Chin
Sent: sexta-feira, 11 de Junho de 2010 16:34
To: jfxtr...@googlegroups.com
Subject: Re: JSceneToComponent
Did you manage to get bitman example which uses video to work? What OS did
you try it in?
With javafx 1.2, video didn't work on vista and 7 when using jxscene.
Cheers,
Pedro DV
-----Original Message-----
From: jfxtr...@googlegroups.com [mailto:jfxtr...@googlegroups.com] On
Behalf Of Stephen Chin
Sent: sexta-feira, 11 de Junho de 2010 16:38
To: jfxtr...@googlegroups.com
Subject: Re: JSceneToComponent
Cheers,
--Steve
You didn't have to add the jmc dll either?
