Example usage for java.awt Menu Menu

List of usage examples for java.awt Menu Menu

Introduction

In this page you can find the example usage for java.awt Menu Menu.

Prototype

public Menu() throws HeadlessException 

Source Link

Document

Constructs a new menu with an empty label.

Usage

From source file:graph.plotter.PieMenu.java

/**
* Works for return to Menu/*from w w w . j  a  va  2 s . c om*/
* @param evt Action variable 
*/
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
    // TODO add your handling code here:
    Menu menu = new Menu();
    Menu.M.getContentPane().removeAll();

    Menu.M.getContentPane().add(Menu.menuPanel);
    Menu.M.repaint();
    Menu.M.revalidate();
}