Java Chapter 22 - Student. Why Java? ADVANTAGESDISADVANTAGES Has _____________ capabilities__________ (10-100 times) than languages compiled directly.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

1 Set Up an Affordable Website SUMMARY: If your NMA chapter has a small number of members or modest funds, you can still create a sharp website for very.
In Review JAVA C++ GUIs - Windows Webopedia.com.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Server-Side vs. Client-Side Scripting Languages
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Chapter 4 Creating a Website from an InDesign Layout.
S ELECTION OF WEB HOST AND WEB PAGE SYSTEM. W EB HOST stores all the pages of your website and makes them available to computers connected to the Internet.
Internet Basics.
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
The Internet & The World Wide Web Notes
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
ECA 228 Internet/Intranet Design I Intro to the Web.
The Basic Java Tools A text editor to write Java program source code. A compiler to translate source code into bytecode. An interpreter to translate.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Address Book in JAVA By What is Address Book Address Book is book or database used for storing entries called contacts Each contact.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
Lecturer: Ghadah Aldehim
INTRODUCTION TO WEB DATABASE PROGRAMMING
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Chapter 11-Multimedia Authoring Tools. Overview Introduction to multimedia authoring tools. Types of authoring tools. Cross-platform authoring notes.
Web Technologies Website Development Trade & Industrial Education
Creating Web Pages Overview. Design – Start with a Purpose Before you start any web page, you need to design the website. The first question that should.
Building a site on the World Wide Web requires more than simply learning the HTML language and starting out. You need to get a place to put your Web pages,
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Website Development with Dreamweaver
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Computer Programming 12 Mr. Jean March 19 th, 2013.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
Chapter 17: Applets, Images, and Sound. Objectives Learn about applets Write an HTML document to host an applet Use the init() method Work with JApplet.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Deployment via jars and Webstart. How do we distribute our application? Lab says you need to submit CD Lab says you need to submit CD Limitations of CD.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
1 CSC Computer Education (P) Ltd. DESIGNED BY K PRAKASH,
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Applets Yong Choi School of Business CSU, Bakersfield.
Object Oriented Programming Examples: C++, Java Advantages: 1. reusibility of code 2. ability to adapt (extend) previously written code.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
 To begin you first need to sign up to Weebly by going to or alternatively and we will create an account.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Session 1: Introduction to HTML Fall Today’s Agenda Talk about the functions of the Internet Cover useful terminology for today’s session HTML,
Navigating the Course 1. Course Materials 2 Software: Notepad (or TextEdit on a Mac) – comes with operating system Internet Explorer Web Browser FireFox.
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Applications Active Web Documents Active Web Documents.
Creating & Customizing Business for Sale Websites
UNIT 15 Webpage Creator.
Review of Previous Lesson
Presentation transcript:

Java Chapter 22 - Student

Why Java?

ADVANTAGESDISADVANTAGES Has _____________ capabilities__________ ( times) than languages compiled directly to machine code. Java requires the extra step of ____________ the bytecode before executing. Machine (platform) _______________ or “write once, run anywhere” Undergoing constant _____________ small language (easy to implement) but steadily growing into a robust language Still requires an ___________ for each machine to run the code supports __________ for executing multiple tasks at the same time Limited to abilities that all machines can produce since it has to run on all types of machines (e.g., lose the extra graphics abilities of SGIs) ___________ – applets prevented from malicious activity

Understanding O-O Object-oriented is defined as: Difference between OO languages and procedural languages: What are some objects you might create if you were asked to create: - Contact address application - Grade rolls for a course - Transcript details for students at a school - Search engine How are methods useful in objects? Once we create an object, how many times can we instantiate it? For example, could we create 4 Smiley objects from the examples used previously? How? How much code did we need to make this happen? Why was it easy? How does this relate to objects?

Security Applets cannot _____ or _____ files on the computer running the applet Applets cannot create ____________________ to other computers Applets cannot ________ a program on the computer that is running the applet Applets cannot read _______________ on the computer that is running the applet Windows that are displayed from an applet are displayed differently than windows from an application, so that the user knows where it came from What is the danger in allowing applets to read files? What is the danger in allowing applets to write files?

Modifying and Using Free Applets

Free applets available  Some provide source code and allow you to modify it as you like.  Be sure to read the copyright, licensing and agreements before you use Find an applet you want. MAKE SURE it includes the java SOURCE code, NOT just the.class files! 2. Download the files (if it's a.zip file, you'll need to extract the contents of the file) 3. Copy the.java file(s) into your IDE (e.g. Eclipse) or editor. 4. Compile and run the Java Applet.

Hosting your applet on the Web

Get your applet up and running on a host somewhere. First you need to get your applet ready without using an IDE such as Eclipse. Setting up the HTML file  Create a file (in your text editor).  Enter the following line, changing the XYZ to the name of your class.  This needs to be saved a file named exactly: "index.html" in lower case letters.  Modify the width and height to what you want.

Hosting your applet on the Web Hosting for free (or buy a domain – see below)  University accounts  Geocities ( Free (but they put ads up on your pages),   Another option: Buying a Domain Name (FYI, not necessary)  Register.com  Registar.com  Aplus.net  others... Uploading files  Upload the index.html, all the.class files, all the images and sound files necessary to make your applet work  Make sure your code referencing the image file names matches the actual file name (case sensitive!! This is important as Eclipse in Windows has been lazy, allowing any case)  NOTE: if your project read in from a local file (not a URL) or writes to a file, you need to remove that code before it will work on the Internet (see Security section).

Other Features through 3 rd Party Libraries

Other Features through 3rd-party libraries Some are free, some cost money Catch - users that view your website with your applet can usually only do so if they too have ______________________________________ or a run-time interpreter for these additional functionalities. Some of the available features include:  2D Graphics  3D Graphics  Virtual Reality  Video  Accessing Databases  MP3 playback  Music manipulation

Summary Why Java Object-Oriented Security Modifying and using free applets Hosting your applet on the Web Other features using 3 rd party libraries