void (MouseEvent e) { super.processMouseEvent(e); if (e.getID() == MouseEvent.MOUSE_CLICKED && e.getClickCount() == 2) { if (areDefaultProportions()) { expandMiddlePanel(); } else { resetProportions(); } revalidate(); repaint(); } }