if (((JOutlookBar)tabPane).isAnimated() && current != target
&& current != null && target != null) {
if (animator != null) {
animator.stop();
}
animator = new PercentLayoutAnimator(tabPane,
(PercentLayout)tabPane.getLayout()) {
protected void complete() {
super.complete();
tabPane.setSelectedComponent(newTab);
nextVisibleComponent = null;