if (showingResizeCursor)
if (showingCursor != Cursor.DEFAULT_CURSOR)
    public void mouseExited(MouseEvent e)    {      // Reset the cursor shape.      if (showingResizeCursor)        {          frame.setCursor(Cursor.getDefaultCursor());          showingResizeCursor = false;        }    }