button = b;
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
if(isVisible()) deactivate(true);
<BUG>else activate(null);
</BUG>
}
});
}

button = b;
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
if(isVisible()) deactivate(true);
else activate(null, true);
}
});
}
