Originally Posted by
aussiemcgr
There is nothing immediately noticablely wrong. I mean, as long as that button is pressed, I don't see why the setText() lines wouldn't run. The only thing I'm not sure of is whether or not JLabels revalidate themselves. If not, that would be your problem. Someone else might know for sure how JLabels react to getting their text changed.
The button appears, but when i click it, nothing happens. :/
Originally Posted by
Norm
Where are you expecting to see anything?
I was expecting to show the calculated dice value in the Label ausgabe.
In the labels zahl1 through 6, should display how many times each number has been "rolled".
Originally Posted by
Norm
Add some printlns to the code to show where the execution flow goes and what the values of variables are as they are used and set.
I haven't used this in java it self yet, just in java script. I will try that out, thank you!