0

I try to play Timeline from Trident animation library on parentless component.

MyPanel mp = new MyPanel();
mp.startAnim(); //to interpolate property
//wait for a while
jPanel1.add(mp);

The property is not interpolated until the component is placed on the parent container.

Is it any possibility to force Timeline to execute 'scenario' in above described environment

maseth
  • 751
  • 1
  • 10
  • 18
  • 1
    Please clarify your requirements again. What do you mean by a "parentless component" for instance? – Hovercraft Full Of Eels Sep 02 '14 at 12:32
  • In situation described above, property will not be interpolated untill I add MyPanel to visible component e.g. JFrame, Jpanel or other container. – maseth Sep 02 '14 at 12:37
  • 1
    Why on Earth would you want to `startAnim();` on an invisible component? See [What is the XY problem?](http://meta.stackexchange.com/q/66377/155831) – Andrew Thompson Sep 02 '14 at 12:47

0 Answers0