J
jrobinss
markspace said:Yes. Your property change listener is just bizarre. You need help with
Swing, not multi-threading. Read the docs on JOptionPane, since you're
trying to use one:
In fact my property change listener is copy pasted from a sample found
on the web. The reason why is that to post an SSCCE, or approaching, I
needed something that compiles and runs, and it's been a long time
since last time I've developed GUIs. And it has no bearing on the
issue.
As I said, these comments are welcome, even though they are not linked
to the problem at hand.
<http://java.sun.com/javase/6/docs/api/javax/swing/JOptionPane.html> [...]
JDialog dialog = pane.createDialog(parentComponent, title);
[minor rant]
BTW, I'm always frustrated when reading up on GUI subjects at the
number of times there are code extracts with some kind of magical
"parentComponent" or "frame" or "panel". Here you are, Java GUI
beginner, trying to understand how to create stuff, and you think you
have a code sample that works, you copy paste it, and voilà, here's a
compilation error, parentComponent not known.
Ok, I understand the logic behind it, but it's still frustrating.