Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The goal of this project is to let a user register for one of the listed IT conf

ID: 3724141 • Letter: T

Question

The goal of this project is to let a user register for one of the listed IT conferences and display an invoice You will create two forms, one for choosing a conference and displaying its information, the other for choosing the registration details: how many guests you have, are you registering as a faculty or a student, etc. 1. Create a new project with two forms. Give the forms meaningful names (I named mine frmMenu and frmRegister) (5 points) 2. Place the following controls on the form frmMenu (5x4 20 points) a. Menu Strip with two menu items. One has the text "Choose Conference" and three sub- menu options ("IACIS", "ISECON", and "iConference"). The other one has the text "Help" and does not have any sub-menu options. b. Four labels with the text "Name:", "Guests:", "Conference:", and "Total:" c. Four text boxes with no text. Make sure that the text boxes are disabled. d. Any Conference image 3. Place the following controls on the form frmRegister (5x5-25 points) Four labels with the text "Conference" and "Name", and "Guests". Add one more label next to the right from "Conference" and make sure it does not have any text. You will later display the name of the conference on this label A text box that will hold the name A combo box that will hold the number of guests. Two radio buttons. A button at the bottom with the text "Confirm" a. b. c. d. e.

Explanation / Answer

Note - This solution contains only first 3 answers. Its a bit lengthy so not able to complete this in 2 hour.

FrmMenu.java

import java.awt.Frame;

import java.awt.Label;

import java.awt.Menu;

import java.awt.MenuBar;

import java.awt.MenuItem;

import java.awt.TextField;

import java.awt.event.WindowAdapter;

import java.awt.event.WindowEvent;

class FrmMenu extends Frame

{  

FrmMenu(){  

Frame frmMenu = new Frame("Conference Menu");  

MenuBar mb=new MenuBar();  

Menu conferenceMenu=new Menu("Choose Conference");  

MenuItem i1=new MenuItem("IACIS");  

MenuItem i2=new MenuItem("ISECON");  

MenuItem i3=new MenuItem("iConference");  

conferenceMenu.add(i1);  

conferenceMenu.add(i2);  

conferenceMenu.add(i3);  

mb.add(conferenceMenu);  

Menu helpMenu=new Menu("Help");  

mb.add(helpMenu);

Label labelName = new Label("Name : ");

labelName.setBounds(50, 80, 100, 20);

frmMenu.add(labelName);

Label labelGuests = new Label("Guests : ");

labelGuests.setBounds(50, 110, 100, 20);

frmMenu.add(labelGuests);

Label labelConference = new Label("Conference : ");

labelConference.setBounds(50, 140, 100, 20);

frmMenu.add(labelConference);

Label labelTotal = new Label("Total : ");

labelTotal.setBounds(50, 170, 100, 20);

frmMenu.add(labelTotal);

TextField txtName = new TextField();

txtName.setBounds(150, 80, 100, 20);

txtName.setEditable(false);

frmMenu.add(txtName);

TextField txtGuests = new TextField();

txtGuests.setBounds(150, 110, 100, 20);

txtGuests.setEditable(false);

frmMenu.add(txtGuests);

TextField txtConference = new TextField();

txtConference.setBounds(150, 140,100, 20);

txtConference.setEditable(false);

frmMenu.add(txtConference);

TextField txtTotal = new TextField();

txtTotal.setBounds(150, 170, 100, 20);

txtTotal.setEditable(false);

frmMenu.add(txtTotal);

frmMenu.addWindowListener(new WindowAdapter() {

@Override

public void windowClosing(WindowEvent arg0) {

System.exit(0);

}

});

frmMenu.setMenuBar(mb);  

frmMenu.setSize(500,500);  

frmMenu.setLayout(null);  

frmMenu.setVisible(true);  

}  

public static void main(String args[])  

{  

new FrmMenu();  

}  

}  

FrmRegister.java

import java.awt.Button;

import java.awt.Checkbox;

import java.awt.CheckboxGroup;

import java.awt.Frame;

import java.awt.Label;

import java.awt.TextField;

import java.awt.event.WindowAdapter;

import java.awt.event.WindowEvent;

import javax.swing.JComboBox;

public class FrmRegister {

FrmRegister(){

Frame frame = new Frame("Register");  

Label labelConference = new Label("Conference : ");

labelConference.setBounds(50, 50, 100, 20);

frame.add(labelConference);

Label labelConferenceName = new Label("gghgyut");

labelConferenceName.setBounds(150, 50, 100, 20);

frame.add(labelConferenceName);

Label labelName = new Label("Name : ");

labelName.setBounds(50, 80, 100, 20);

frame.add(labelName);

Label labelGuests = new Label("Guests : ");

labelGuests.setBounds(300, 80, 100, 20);

frame.add(labelGuests);

TextField txtName = new TextField();

txtName.setBounds(150, 80, 100, 20);

frame.add(txtName);

String arr[] = new String[100];

for (int i=0; i<100;){

arr[i] = String.valueOf(++i);

}

JComboBox cb = new JComboBox(arr);   

cb.setBounds(400, 80, 100, 20);   

frame.add(cb);   

CheckboxGroup cbg = new CheckboxGroup();  

Checkbox checkBox1 = new Checkbox("Faculty", cbg, false);   

checkBox1.setBounds(50,110, 100,50);   

Checkbox checkBox2 = new Checkbox("Student", cbg, true);   

checkBox2.setBounds(150,110, 100,50);   

frame.add(checkBox1);   

frame.add(checkBox2);

Button button = new Button("Confirm");

button.setBounds(70, 180, 100, 30);

frame.add(button);

frame.addWindowListener(new WindowAdapter() {

@Override

public void windowClosing(WindowEvent arg0) {

System.exit(0);

}

});

frame.setSize(600,300);  

frame.setLayout(null);  

frame.setVisible(true);  

}

public static void main(String[] args) {

new FrmRegister();

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote