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
To get values and keys you could just use the methods values() and keySet() of HashMap
public static List getValues(Map map) { return new ArrayList(map.values()); } public static List getKeys(Map map) { return new ArrayList(map.keySet()); }