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:
JTabbedPane
You could use iterator to do that:
For keys:
for (Iterator itr= hash.keySet().iterator(); itr.hasNext();) { // use itr.next() to get the key value }
You can use iterator similarly with values.