Sorry for my "strange" subject line. This is so strange, I must be missing something obvious.
below is the run method of a class that extends
Thread.
output is a JTextPane. There is a start() command in the constructor for this class. This constructor is call from the init() method of my
applet class. The constructor sets Boolean goRun to true. WHen I fire up the applet, the
word "check1" appears, so I know the thread has started. What is supposed to happen is that when I click on a button in my GUI, the
string variable
cmd is set with a string that starts with
setboard . The checks are printed to let me know that a particular command has executed. I use this technique for debugging all the time, this is the first time I have tried with threads. There are no there are no other output statements than the ones you see here. Here is the problem. WHen I click the button the output appears as follows...
check3
check2
check1
I cannot for the life of me understand why it would appear in the reverse order that the actual append statements appear in this block of code. Since I am using the append method, and my strings end with newline "\n", and especially since the last time I checked, code blocks are supposed to execute from top to bottom. I'm sure I missing something obvious, I just can't see it.