add isMaximized() in Panel.java