Here you can find the source of getPopupMenu()
public static JComponent getPopupMenu()
//package com.java2s; /*//from w w w .j av a2 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 JComponent popupMenu = null; public static JComponent getPopupMenu() { return popupMenu; } }