// Set the window's menu bar. } The buildPackagesMenu method builds the Packages menu. private void buildPackagesMenu() { //Create packages menu // //Create "Packages" menu items (300 minutes, 800 minutes, 1500 minutes) // Create a button group for the radio button menu items. //Add action listener to (300 minutes, 800 minutes, 1500 minutes) menu items packageAitem.addActionListener(new PackageListener()); packageBitem.addActionListener(new packageCitem.addActionListener(new PackageListener()); Package Listener()); // add radio button menu items to Package menu

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Please complete the code in piccomplete after the comments in java
// Set the window's menu bar.
}
8/10
The buildPackagesMenu method builds the Packages menu.
private void buildPackages Menu()
//Create packages menu
//Create "Packages" menu items (300 minutes, 800 minutes, 1500 minutes)
// Create a button group for the radio button menu items.
//Add action listener to (300 minutes, 800 minutes, 1500 minutes)menu items
packageAitem.addActionListener(new PackageListener());
packageBitem.addActionListener(new
packageCitem.addActionListener(new
PackageListener());
Package Listener());
// add radio button menu items to Package menu
Transcribed Image Text:// Set the window's menu bar. } 8/10 The buildPackagesMenu method builds the Packages menu. private void buildPackages Menu() //Create packages menu //Create "Packages" menu items (300 minutes, 800 minutes, 1500 minutes) // Create a button group for the radio button menu items. //Add action listener to (300 minutes, 800 minutes, 1500 minutes)menu items packageAitem.addActionListener(new PackageListener()); packageBitem.addActionListener(new packageCitem.addActionListener(new PackageListener()); Package Listener()); // add radio button menu items to Package menu
private JRadioButtonMenuItem
private JRadioButtonMenuItem
private JRadioButtonMenuItem
private JCheckBox optionTM;
private JCheckBox optionVM;
private JButton subscribe;
public CellPackages ()
{
// Display a title.
setTitle("Cell Phone Packages");
// Specify what happens when the close button is clicked.
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Build the menu system.
buildMenuBar();
// Build the panels.
buildPackagesPanel();
packageAitem; // 388 minute package menu item
packageBitem; // 800 minute package menu item
packageCitem; // 1588 minute package menu item
//option Text message
//option voice
//subscription button
// Create a grid layout: 4 rows, 1 column.
set Layout (new GridLayout(3, 1));
// Add the panels to the content pane.
add (packagesPanel);
// Pack and display the window.
pack();
setVisible(true);
}
// The buildMenuBar method builds the application's menu bar.
private void buildMenuBar()
//Create the menu bar.
Jmenu mbare Jmenu;
build Packages Menu(); // create menu
// Add the Packages menu to the menu bar.
Transcribed Image Text:private JRadioButtonMenuItem private JRadioButtonMenuItem private JRadioButtonMenuItem private JCheckBox optionTM; private JCheckBox optionVM; private JButton subscribe; public CellPackages () { // Display a title. setTitle("Cell Phone Packages"); // Specify what happens when the close button is clicked. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Build the menu system. buildMenuBar(); // Build the panels. buildPackagesPanel(); packageAitem; // 388 minute package menu item packageBitem; // 800 minute package menu item packageCitem; // 1588 minute package menu item //option Text message //option voice //subscription button // Create a grid layout: 4 rows, 1 column. set Layout (new GridLayout(3, 1)); // Add the panels to the content pane. add (packagesPanel); // Pack and display the window. pack(); setVisible(true); } // The buildMenuBar method builds the application's menu bar. private void buildMenuBar() //Create the menu bar. Jmenu mbare Jmenu; build Packages Menu(); // create menu // Add the Packages menu to the menu bar.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education