PRG_421_Week_2_Individual_Assignment

Apr 17th, 2015
Studypool Tutor
University of Phoenix
Course: Information Technologies
Price: $15 USD

Tutor description

Word Count: 683
Showing Page: 1/7
Week 2 Individual AssignmentUniversity of PhoenixOnline CampusPRG/421DescriptionThe following document shall include details about week 2 individual assignment.The individual assignment includes developing Java GUI of a square window which contains five JavaButtons as well as a Java Menu bar with menu items in it.The Java code is basically a step further to creating Java windows applications. It contains methods tocreate buttons and menu bars. It also includes Java class definition as well as instantiating it.Flow ChartInstantiateingSquareWindowClassGetting screensizeErics FlowChartSet Squarewindow sizeand positionCreating ButtonsCreating Menu barAdding buttonsand menu bar in acontent pane.Java Application Code/*******************************************************************Java Application with a square window having buttons and menu.****PRG/421*******************************************************************/import javax.swing.*;import java.awt.*;public class PRG_421_Week_2_Individual_Assignment_SquareWindow extends JFrame {public PRG_421_Week_2_Individual_Assignment_SquareWindow(String title) {super(title);Toolkit theKit = this.getToolkit();Dimension window = theKit.getScreenSize(); //get screen size// Calculate window side length as half the screen heightint w_size = window.width/2;int h_size = window.height/2;setBounds((window.width - (5*w_size/4)), (window.height-h_size)/2,of the window in the middle of the

Review from student

Studypool Student
" Totally impressed with results!! :-) "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1828 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors