IT 233 Northern Virginia Community College Java Application Project

Page 1 of 3IT-230 Final Project Part 1 – GUI Proposal (100 Points – 15% of Your Grade)
Due Date: Tuesday, March 3rd, 2022 before 11:59 PM
Tasks: Research, design and build a complete Java Graphical Interface for a simple Java Application of your choice
for collecting and processing its data.
Requirements: You must develop your GUI by writing your own Java code using Dr. Java without using other
automated development tools.
1.
2.
3.
4.
Your GUI must include the following components:
a. JLabel
b. JTextField
c. JCombobox
d. JRadioButton
e. JCheckBox
f. JTextArea
g. ImageIcon
h. JButton
i. JPanel
j. JFrame
The total number of all components (a-g) combined must be 30 components or more.
Restrictions
a. JPanel, JFrame, and ButtonGroup are NOT qualified as one of the 30 components.
b. At least 20 components must allow user inputs (b-f). For example, JLabel does NOT allow users
to input anything; therefore, it cannot collect data and is NOT qualified as one of the 20
components.
Your GUI must be user-friendly.
Implement Action Listener to collect information and display it using JOptionPane for confirmation of the
process.
Sample 1: You are NOT allowed to build this sample GUI as your proposal.
Sample proposal for a Java Graphical User Interface (GUI) for a simple Car Reservation System
Page 2 of 3
JComboBox data:
1. Pick-up and Drop-off time is between 7 am – 7 pm when it is dropped.
2. Car type displays the choices of Economy, Compact, Mid-Size, Standard, Full-Size, Premium, Luxury, Convertible,
Minivan, and SUV when it is dropped.
Sample 2: You are NOT allowed to create this sample GUI as your proposal.
Sample proposal for a Java Graphical User Interface (GUI) for a simple Hotel Reservation System
Page 3 of 3
JComboBox data:
1.
No. of rooms should display the choices of 1, 2, 3, 4-9, 10-25 and 26+ when it is dropped.
2.
Guests/Room should display the choices of 1-6 when it is dropped.
Page 1 of 3
IT-230 Final Project Part 1 – GUI Proposal (100 Points – 15% of Your Grade)
Due Date: Tuesday, March 3rd, 2022 before 11:59 PM
Tasks: Research, design and build a complete Java Graphical Interface for a simple Java Application of your choice
for collecting and processing its data.
Requirements: You must develop your GUI by writing your own Java code using Dr. Java without using other
automated development tools.
1.
2.
3.
4.
Your GUI must include the following components:
a. JLabel
b. JTextField
c. JCombobox
d. JRadioButton
e. JCheckBox
f. JTextArea
g. ImageIcon
h. JButton
i. JPanel
j. JFrame
The total number of all components (a-g) combined must be 30 components or more.
Restrictions
a. JPanel, JFrame, and ButtonGroup are NOT qualified as one of the 30 components.
b. At least 20 components must allow user inputs (b-f). For example, JLabel does NOT allow users
to input anything; therefore, it cannot collect data and is NOT qualified as one of the 20
components.
Your GUI must be user-friendly.
Implement Action Listener to collect information and display it using JOptionPane for confirmation of the
process.
Sample 1: You are NOT allowed to build this sample GUI as your proposal.
Sample proposal for a Java Graphical User Interface (GUI) for a simple Car Reservation System
Page 2 of 3
JComboBox data:
1. Pick-up and Drop-off time is between 7 am – 7 pm when it is dropped.
2. Car type displays the choices of Economy, Compact, Mid-Size, Standard, Full-Size, Premium, Luxury, Convertible,
Minivan, and SUV when it is dropped.
Sample 2: You are NOT allowed to create this sample GUI as your proposal.
Sample proposal for a Java Graphical User Interface (GUI) for a simple Hotel Reservation System
Page 3 of 3
JComboBox data:
1.
No. of rooms should display the choices of 1, 2, 3, 4-9, 10-25 and 26+ when it is dropped.
2.
Guests/Room should display the choices of 1-6 when it is dropped.
import javax.swing. JFrame;
import javax.swing. JLabel;
import java.awt.BorderLayout;
import javax.swing. JTextField;
import javax.swing.JPanel;
import javax.swing.JCheckBox;
import java.awt.GridLayout;
import javax.swing. JButton;
import java.awt.Color;
import javax.swing.JRadioButton;
import javax.swing. ButtonGroup;
import javax.swing.JComboBox; // dropbox
import javax.swing.JTextArea;
import java.awt.event.ActionListener;
import java.awt.event. ActionEvent;
import javax.swing.JOptionPane; // pop-up box
public class GUIExample extends JFrame implements ActionListener {
private JLabel fullnameLabel, hobbyLabel, commentLabel;
private JTextField fullnameTextField;
private JPanel northPanel, westPanel, westPanel2, southPanel;
private JPanel centerPanel, eastPanel;
private JCheckBox musicCheckbox, movieCheckbox;
private JButton submitButton, cancelBut
private JRadioButton maleOption, femaleOption;
private ButtonGroup genderGroup;
private ComboBox stateBox;
private JTextArea commentBox;
public GUIExample() { // constructor
fullnameLabel = new JLabel(“Enter Full Name: “);
fullnameLabel.setForeground(Color.white);
fullnameTextField = new JTextField(5);
northPanel = new JPanel();
northPanel.setBackground(new Color(19124, 143));
=
public GUIExample() { // constructor
fullnameLabel = new JLabel(“Enter Full Name: “);
fullnameLabel. setForeground(Color.white);
fullnameTextField = new JTextField(5);
northPanel = new JPanel();
northPanel.setBackground(new Color(19, 124, 143));
northPanel.add(fullnameLabel);
northPanel.add(fullnameTextField);
add(northPanel, BorderLayout. NORTH);
hobbyLabel = new JLabel(“Select Hobby: “);
hobbyLabel.setToolTipText(“select all that applies”);
musicCheckbox = new JCheckBox(“Music”);
movieCheckbox = new JCheckBox(“Movie”);
String statelist [] = {“DC”, “MD”, “VA”};
stateBox = new J ComboBox(statelist);
westPanel = new JPanel();
westPanel.setLayout(new GridLayout(4, 1));
westPanel.add(hobbyLabel);
westPanel.add(musicCheckbox);
westPanel.add(movieCheckbox);
westPanel.add(stateBox);
westPanel2 new JPanel();
westPanel2.add(westPanel);
add(westPanel2, BorderLayout.WEST);
=
submitButton = new JButton(“Submit”);
submitButton.addActionListener(this);
cancelButton = new JButton(“Cancel”);
cancelButton.addActionListener(this);
cancelButton. setForeground (Color.red);
southPanel = new JPanel();
southPanel.setBackground(Color.green):

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER