This is a very troubling question for me, while learning Java.
Below is a Chess GUI, for which I am trying to add a save button which must save the content(the current states of objects like the positions of JLabels, JPanels, etc. or the entire frame itself) and must resume playing after double-click from the saved location. Help me in this situation, as for all of my projects, this is appended as a drawback all the time. [Chess GUI]
In general, please tell me how to save the states or attributes of an object and look at it later.
没有评论:
发表评论