It's possible but tricky. We are working on a sample that shows how to do it. Your best bet is to make your FX class extend some Java interface, like ActionListener, and then call only methods on that interface. This way Java doesn't know that it's calling a non-Java object. Also, null constructors will work on FX objects.
-j On Dec 5, 2008, at 5:50 AM, Alex Ruiz wrote: > It looks nice. But, how in the world can I call a JavaFX objects > from Java? > I'm trying to launch a JavaFX UI from the main method of a Java class. > > I found some articles/wiki pages on Google, but they seem to be > outdated :( > > Thanks, > -Alex > > On Thu, Dec 4, 2008 at 9:09 PM, Bill Robertson <[EMAIL PROTECTED] > >wrote: > >> >> All in all, it rocks. I'm downloading the nb plugin. Now that its >> here and its real, I'm looking forward to using it. >> >> Is there a full screen mode? e.g. for kiosks? >> >> I ran into a couple issues. (I am not complaining, but I thought you >> might want to know.) I ran into the same Version "0" thing mentioned >> above after removing all JDK/JRE installs and letting web download >> attempt its magic. I downloaded an updated JDK/JRE bundle because I >> was out of date anyway and all was better. I ran into a bit of a >> weird issue in the site where I'd click to one of the sample pages >> and >> end up on a page that was blank except for a broken image on it. >> Then >> I'd hit back and end up on the sample page. >> >> On Dec 4, 11:55 pm, Matt Scully <[EMAIL PROTECTED]> wrote: >>> On Dec 4, 6:18 pm, Joshua Marinacci <[EMAIL PROTECTED]> wrote: >>> >>>> the mp3 player dragging is a bug in my code that I didn't fix in >>>> time. >> >>>> I'll be fixed in a refresh of the samples soon. >>> >>> Since other apps were dragging well, I was thinking it may be a bug. >>> I'm sure it's been a long day with the launch, but good work. It >>> will >>> certainly be interesting to see how the JavaFX story unfolds. There >>> is still a long way to go, but I was excited to see some good >>> potential with these demos. Thanks! >>> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
