Reset JComponent to default value

后端 未结 5 600
广开言路
广开言路 2021-01-21 16:58

For example, if component is a checkbox it must set to false, or it is a textfield it must be clear the text. I am trying to write a method for reset all components in a J

5条回答
  •  自闭症患者
    2021-01-21 17:29

    Write a method which sets the initial values of all elements on start. Then you can reuse this initialization method to "reset" the values.

提交回复
热议问题