0% found this document useful (0 votes)
2 views2 pages

Main Menu

The document is a Java class named MainMenu that extends JFrame, providing a graphical user interface for a menu system. It includes methods for handling menu item actions, such as adding items, viewing customer lists, and exiting the application. The main method initializes and displays the MainMenu when the application is run.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Main Menu

The document is a Java class named MainMenu that extends JFrame, providing a graphical user interface for a menu system. It includes methods for handling menu item actions, such as adding items, viewing customer lists, and exiting the application. The main method initializes and displays the MainMenu when the application is run.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

public class MainMenu extends javax.swing.

JFrame {

public MainMenu() {

initComponents();

private void mnuItemAddActionPerformed(java.awt.event.ActionEvent evt) {

this.setVisible(false);

new ItemINUI().setVisible(true);

private void mnuOrderActionPerformed(java.awt.event.ActionEvent evt) {

this.setVisible(false);

new OrderINUI().setVisible(true);

} private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {

private void ListCustActionPerformed(java.awt.event.ActionEvent evt) {


this.setVisible(false);

new CustListUI().setVisible(true);

private void ListItemActionPerformed(java.awt.event.ActionEvent evt) {

this.setVisible(false);

new ItemListUI().setVisible(true);

private void ListOrderActionPerformed(java.awt.event.ActionEvent evt) {

this.setVisible(false);

new OrdListUI().setVisible(true);

private void jMenu2ActionPerformed(java.awt.event.ActionEvent evt) {

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {

System.exit(0);

private void jMenu3ActionPerformed(java.awt.event.ActionEvent evt) {

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new MainMenu().setVisible(true);

});

You might also like