In this tutorials will teach how to create the main menu using java by code with out drag and drop. This is the code which we use to create the Main Menu by code import java.awt.Dimension; import java.awt.Frame; import java.awt.MenuBar; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.*; import java.awt.event.*; public class Main extends Frame implements ActionListener { public Main() …