Hi, playing around a bit with splitpane. I have a dynamicform in the detailpane, and i want to have a button that shows a pane with information "on top" of the form.
The only way i've found is to simply switch detailpanes back and forth between the form and the info pane with setDetailPane() on the splitpane object. It works, but it might look better if it had some animation where the form for example fades out, and the infopane fades in.
Is there some way to accomplish this in an orderly fashion?
EDIT:
I have managed to get some animation out by putting a vlayout in the detailpane, adding both form and infopane to it and showing/hiding them with animations. It only semi-works though, since only one is animated and the other blips out.
I suppose what i am after is either crossfading the 2 components, or some way to make the infopane slide in on top of the form, then hiding the form. Is this at all possible?
All your examples are one-component, i couldn't find any animated transitions between components.
The only way i've found is to simply switch detailpanes back and forth between the form and the info pane with setDetailPane() on the splitpane object. It works, but it might look better if it had some animation where the form for example fades out, and the infopane fades in.
Is there some way to accomplish this in an orderly fashion?
EDIT:
I have managed to get some animation out by putting a vlayout in the detailpane, adding both form and infopane to it and showing/hiding them with animations. It only semi-works though, since only one is animated and the other blips out.
Code:
infoPane = new BackButtonVLayout(() -> hideInfoPane()); infoPane.addMember(new Label("BANANA")); infoPane.setAnimateTime(300); infoPane.setAnimateHideEffect(AnimationEffect.FADE); infoPane.setAnimateShowEffect(AnimationEffect.FADE); detailPane.addMember(infoPane); details.setAnimateHideEffect(AnimationEffect.FADE); details.setAnimateShowEffect(AnimationEffect.FADE); details.setAnimateTime(300); ----- private void showInfoPane() { infoPane.animateShow(); details.animateHide(); }
All your examples are one-component, i couldn't find any animated transitions between components.
Comment