how to update swing components# Java - 爪哇娇娃
w*r
1 楼
When a function is running, the frame seems dead. It won't be repainted even
if it is only moved. If modify some text in the component, it won't update it.
How to make it work? I want to show something when the algorithm is running. I
tried "validate", "update", "repaint". None of them works. Maybe I didn't call
them in the correct way. Nothing need to do when using awt components. The
component will be updated whenever it is modified. Anything special with
swing?
Thank you very much
if it is only moved. If modify some text in the component, it won't update it.
How to make it work? I want to show something when the algorithm is running. I
tried "validate", "update", "repaint". None of them works. Maybe I didn't call
them in the correct way. Nothing need to do when using awt components. The
component will be updated whenever it is modified. Anything special with
swing?
Thank you very much