we observe strange painting behaviour when an exception in uncaught in a swing listener like this:
mytable.getSelectionModel().addListSelectionListener(
new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
... no try catch and npe exception happens
}
});
is it because we're throwing in swing and interrupt normal paint/updates? In window that throws we begin to see buttons in weird places, scroll bars appear multiple times. If so what to do? try/catch on every swing listener?