setText to Jlabel with function

后端 未结 4 835
我寻月下人不归
我寻月下人不归 2021-01-26 06:49

I am trying to settext to JLabel with a function.

The checkResults function is not working for some reason I still get errors. I have 2 classe

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-26 07:40

    As I commented on your previous question: You need to remove "problems.run()" from your first condition in the listener, otherwise the "answer" you get will be for the next question, and so on. Also, consider using doubles in your divide() method, by using ints you will lose the decimals.

提交回复
热议问题