Presentation is loading. Please wait.

Presentation is loading. Please wait.

COMP 321 Week 1. Application Server Programming Introduction to server-based programming using an object-oriented approach You will learn and reflect.

Similar presentations


Presentation on theme: "COMP 321 Week 1. Application Server Programming Introduction to server-based programming using an object-oriented approach You will learn and reflect."— Presentation transcript:

1 COMP 321 Week 1

2 Application Server Programming Introduction to server-based programming using an object-oriented approach You will learn and reflect on two- and three-tier software architectures, separation of responsibility, design patterns, and web frameworks Swing-based GUI clients, XHTML clients, XML, JDBC, Java Server Pages and Java Servlets used as the implementation mechanisms for Model 1 and Model 2 web architectures

3 Prerequisites: Database Management Systems (COMP/ITEC/MIS 281 or COMP/ITEC/MIS 380) Object-Oriented Data Structures & Algorithms II (COMP 311) Survey of Computer Languages (COMP 205) or Web Design & Implementation (COMP/DCOM/ ITEC 234)

4 Course Outcomes Design, code, test, and debug a rich-client GUI application Use a connector to persist objects in a relational database Apply object-oriented techniques to abstract database interactions Compare and contrast Model 1 and Model 2 web application architectures

5 Course Outcomes (cont’d) Implement object-oriented model, view, and controller components Design, code, test, and debug a simple Model 2 web application Recognize and apply the design patterns of Model-View-Controller, Chain of Responsibility, Front Controller, Command, Data Access Object, and Data Transfer Object in object-oriented designs

6 Textbooks Horstmann, C. (2010). Big Java. (4th ed.). Hoboken, NJ: John Wiley & Sons. ISBN: 978-0-470-50948-7 Basham, B., Sierra, K., & Bates, B. (2008). Head First Servlets and JSP. (2nd ed.). O'Reilly. ISBN: 978-0-596-51668-0

7 Attendance Policy You should make every effort to attend the live sessions. If you cannot attend, you are required to watch the recording and submit a 1-page summary A student who has not participated for more than THREE weeks, at any time during the course will receive a failing grade (Z) for the class The student may file a drop form within the appropriate time frame through the office of the Registrar to avoid a failing grade

8 Weekly Activities Check course announcements and bulletin board postings Read the associated sections from the text books and key points Complete the weekly learning activities Work on any scheduled lab assignments

9 Weekly Activities Exam Lab Discussion Learning activities Readings

10 Points Breakdown Pct (%) TypeCountPointsTotal Homeworks1025-100425 Midterm Exams 2100200 Final Exam 1150150 775

11 Submission & Return Policy Late assignments can receive a maximum of 75% of total points Solutions will be reviewed in class the week after the due date Once the solution is reviewed, late assignments can no longer be submitted

12 GUI Components Components (buttons, labels, text fields) Containers (also a Component) Layout Managers Events Event Listeners

13 Components Occupy screen space and provide interaction between the user and your program Examples include push button, label, text field, check boxes, etc. Check out Java 6 API for a full list of components: http://java.sun.com/javase/6/docs/api/

14 Container Classes WindowFrame Dialog (usually modal) Panel (cannot be displayed by itself) Applet (subclass of Panel)

15 Ellipses, Lines, Text // Draw an ellipse // Draw an ellipse Ellipse2D.Double ellipse = new Ellipse2D.Double(5, 10, 50, 20); Ellipse2D.Double ellipse = new Ellipse2D.Double(5, 10, 50, 20); g2.draw(ellipse); g2.draw(ellipse); // Draw a line // Draw a line Line2D.Double line = new Line2D.Double(20, 35, 100, 105); Line2D.Double line = new Line2D.Double(20, 35, 100, 105); g2.draw(line); g2.draw(line); // Another way to draw a line // Another way to draw a line Point2D.Double from = new Point2D.Double(30, 35); Point2D.Double from = new Point2D.Double(30, 35); Point2D.Double to = new Point2D.Double(110, 105); Point2D.Double to = new Point2D.Double(110, 105); line = new Line2D.Double(from, to); line = new Line2D.Double(from, to); g2.draw(line); g2.draw(line); // Draw a String // Draw a String g2.drawString("Welcome to COMP321!", 10, 200); g2.drawString("Welcome to COMP321!", 10, 200);

16 Color, How to Fill Shapes // Using color // Using color Color magenta = new Color(255, 0, 255); Color magenta = new Color(255, 0, 255); g2.setColor(magenta); g2.setColor(magenta); g2.draw(ellipse); g2.draw(ellipse); // Filling a shape with color // Filling a shape with color g2.setColor(Color.GREEN); g2.setColor(Color.GREEN); g2.fill(ellipse); g2.fill(ellipse);


Download ppt "COMP 321 Week 1. Application Server Programming Introduction to server-based programming using an object-oriented approach You will learn and reflect."

Similar presentations


Ads by Google