Java Swing Menu setViewportMenu(JComponent c)

Here you can find the source of setViewportMenu(JComponent c)

Description

set Viewport Menu

License

GNU General Public License

Declaration

public static void setViewportMenu(JComponent c) 

Method Source Code

//package com.java2s;
/*//from ww  w. j a  va2s  .  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 vpMenu = null;

    public static void setViewportMenu(JComponent c) {
        vpMenu = c;
    }
}

Related

  1. removeMenuMnemonics(MenuElement[] elements)
  2. setFontsToMenu(MenuElement menuElement, Font font)
  3. setMenuFont(Object item, Font theFont)
  4. setMenuText(AbstractButton item, String text, boolean useMnemonic)
  5. setMenuUp(boolean s, JComponent c)
  6. showContextMenu()
  7. showRCMenu(JTextComponent text, MouseEvent e)
  8. toMenu(List actions)