Here you can find the source of setMenuUp(boolean s, JComponent c)
public static void setMenuUp(boolean s, JComponent c)
//package com.java2s; /*/*from www. j ava 2 s . c o m*/ * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ import javax.swing.*; public class Main { private static boolean menuIsUp = false; private static JComponent popupMenu = null; public static void setMenuUp(boolean s, JComponent c) { menuIsUp = s; if (s) popupMenu = c; else popupMenu = null; } public static void setMenuUp(boolean s) { menuIsUp = s; popupMenu = null; } }