Here you can find the source of getWindow(String title)
public static JFrame getWindow(String title)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; import javax.swing.JFrame; public class Main { private static Map<String, JFrame> windows = new HashMap<String, JFrame>(); public static JFrame getWindow(String title) { return windows.get(title); }//from ww w . j a v a2 s .c o m }