1 Reply Latest reply on Nov 11, 2011 2:12 PM by Narayan

    Cache javaxf objects

      I have a floor plan created by Javafx objects on which I animate a circle.Is there a way to cache the FloorPlan object in Javafx so that I dont need to recreate it any time I need it?

      Thanks in advance.
        • 1. Re: Cache javaxf objects
          If you are good on Object Oriented Concept then it's not a big deal.To save the object and use them anytime make them static
          For example:
          public class SomeClass{
               public static MyClass myObject = new MyClass();
               //Now use the object at anytime anywhere. The object will saved in the VM within the lifetime of Application.