I am developing an desktop application in which I need to use javafx and java both as I read on sun's site that, we can use objects of javafx classes within java programs but when I tried it, I didn't get how to? Can any body help me how to use/create javafx objects within java code or java objects within javafx code??

Please do reply...!

>we can use objects of javafx classes within java programs but when I tried it, I didn't get how to?
Show us your code.
Example,

function run()
{
  println("Hi");
}
public class Test{
}
public static class Best{
}