I have an application and I’m working on the menu. In the menu you have JButtons on your left, and when you click on, a panel appears on the right with some options on it. I want a smooth animation for the panel apparition.
For the moment, I use setVisible for hide and show my panel, but I want create a smooth animation. I would like the panel to arrive from the right of the frame by sliding to its new position (like a PowerPoint effect). I have heard about TimingTarget and Animator for Java swing, so I’m asking if someone know how to do. I have trying to find tutorial but what I’ve found doesn’t work with JPanel. For precision I use MigLayout for manage positions and dimensions and all my panes are JPanels.
Thanks for your help, and sorry for my English !
Arthur is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.