How to get values and keys from HashMap?

前端 未结 10 1569
無奈伤痛
無奈伤痛 2020-12-08 01:56

I\'m writing a simple edit text in Java. When the user opens it, a file will be opened in JTabbedPane. I did the following to save the files opened:

10条回答
  •  眼角桃花
    2020-12-08 02:31

    Use the 'string' key of the hashmap, to access its value which is your tab class.

    Tab mytab = hash.get("your_string_key_used_to_insert");
    

提交回复
热议问题