The Basic Java Applet and JApplet
|
|
- Roger Barker
- 7 years ago
- Views:
Transcription
1 I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s The Basic Java Applet and JApplet Rob Dempster robd@cs.ukzn.ac.za School of Computer Science University of KwaZulu-Natal Pietermaritzburg Campus I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.1/20
2 Abstract This is not a paper. It is the lecture presentation slides I used to provide a framework for the lectures I presented dealing with the material covered in Section 1 of Chapter 6 of David J. Eck s book entitled Introduction to Programming Using Java [1]. The slides were prepared using SuSE Linux, Emacs, LAT E Xand Prosper. c 2005, Robert Dempster. These are free slides. There are no restrictions on using or redistributing or posting on the web a complete, unmodified copy of this material. There are some restrictions on modified copies. To be precise: Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no invariant sections, front cover text, or back cover text. The most recent version of these slides are always available, at no charge, for downloading and for on-line use at the Web address robd/javaslides/. There you will find the LAT E Xsource code together with the slides in formats suitable for slide presentations (.sp.) and hand-outs (.ho.). I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.2/20
3 Interfaces Introduction Java is a programming language designed for networked computers and the World Wide Web i.e., the design of distributed computing applications It contains many neat features to make this easy to do in a reliable and secure manner. Part of learning Java is learning to program applets and other Graphical User Interface (GUI) programs. GUI programs are event-driven. That is, user actions such as clicking on a button or pressing a key on the keyboard, generate events, and the program must respond to these events as they occur. Related to GUI programming is Human Computer Interaction (HCI). I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.3/20
4 The Basic Java Applet and JApplet Java applets are small programs that are meant to run on a page in a Web browser. However: An applet is not a complete program. It doesn t have to be small. There are other ways to use them. An applet is inherently part of a graphical user interface. It is a type of graphical component that can be displayed in a window which we will hereafter assume, belongs to a Web browser. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.4/20
5 The Basic Java Applet and JApplet (cont d) The Applet class, defined in the package java.applet, is really only useful as a basis for making subclasses. An object of type Applet has certain basic behaviours, but doesn t actually do anything useful. There are several methods in the Applet class that are defined to do nothing. The programmer must override at least some of these methods and give them something to do. An applet program does not contain a main() routine since it is not a stand-alone program. However, many of the methods in an applet are similar to main(), in that they are meant to be called by the system. It is the job of the programmer is to say what happens in response to these system calls. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.5/20
6 The Basic Java Applet and JApplet (cont d) One of the methods that is defined in the Applet class to do nothing is the paint() method. The paint() method is called by the system when the applet needs to be drawn. In a subclass of Applet, the paint() method can be redefined to draw various graphical elements such as rectangles, lines, and text on the applet. As a first example of an applet, let s go the traditional route and look at an applet that displays the string "Hello World!". I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.6/20
7 The Hello World Applet import java.awt.*; import java.applet.*; public class HelloWorldApplet extends Applet { // Applet displays the string Hello World! public void paint(graphics g) { } g.drawstring("hello World!", 10, 30); } // end of class HelloWorldApplet I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.7/20
8 The Hello World Applet - The Theory! The drawstring() method, defined in the Graphics class, actually does the drawing, using the Graphics (context) object referenced by g. Back to the applet: It is an object, but we have not created an object here. This of course begs the question: Then where does it come from? It is the web browser s responsibility to create the Applet object and add it to its browser window. Browsers execute html (a markup language) code that describes how a web page should be displayed. The instructions to the browser regarding the applet are contained in and by (surprise!!!) the <applet> markup tag. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.8/20
9 The Hello World Applet HTML code <center> <applet code="helloworldapplet.class" width=200 height=50> <p> If you do not see this applet, speak to your sysadm asap!! </p> </applet> </center> I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.9/20
10 The Hello World Applet - The Theory (cont d) The Applet class defines another method that is essential for programming applets, the init() method. This method is called just after the applet object has been created and before it appears on the screen. Its purpose is to give the applet a chance to do any necessary initialisation. Again, this method is called by the system, not by your program. You might be wondering why initialisation is done in the init() method rather than in a constructor. It is possible to define a constructor for your applet class, as the system calls the constructor that has no parameters. Unfortunately when the constructor is called, the size of the applet is not available. It is when init() is called. It is customary to do applet initialisation in the init() method. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.10/20
11 The second Hello World Applet import java.awt.*; import java.applet.*; public class HelloWorldApplet2 extends Applet { public void init() { setbackground(color.blue); setforeground(color.yellow); } public void paint(graphics g) { } g.drawstring("hello World!", 10, 30); } // end of class HelloWorldApplet2 I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.11/20
12 JApplets and Swing The AWT (Abstract Windowing Toolkit) has been part of Java from the beginning, but was not powerful or flexible enough for writing complex, sophisticated applications. This does not prevent it from being useful especially for applets, which are generally not as complex as full-scale, independent applications. The Swing graphical user interface library was created to address the problems with the AWT. The classes that make up the Swing library can be found in the package javax.swing. Swing includes the class javax.swing.japplet as a basis for writing applets. JApplet is a subclass of Applet, so JApplets are in fact also Applets. However, JApplets have a lot of extra structure that plain Applets don t have. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.12/20
13 A JApplet Example import javax.swing.*; // Swing GUI classes are defined here. import java.awt.event.*; // Event handling class are defined here. public class HelloSwing extends JApplet implements ActionListener { public void init() { JButton bttn = new JButton("Click Me!"); bttn.addactionlistener(this); getcontentpane().add(bttn); } // end init() public void actionperformed(actionevent evt) { String title = "Greetings"; // Shown in title bar of dialog box. String message = "Hello from the Swing User Interface Library."; JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE); } // end actionperformed() } // end class HelloSwing I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.13/20
14 JApplets and Swing - Some Notes First we instantiate a Button. Then we instruct the system to monitor the button for events by telling it to invoke this objects actioneperformed() method. Because our program is a JApplet it already has the content pane provided by the Browser. We then add the button to this content pane. The actioneperformed() method simply pops up a message dialog window containing an appropriate message. That is it - heaps and heaps of work done by the GUI API. Great code reuse!!!! I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.14/20
15 JApplets and Swing - Some More Notes In the previous example the applet itself listened for action events from the button The preferred practice is to create a separate object to listen for, and respond to, events. This is more object-oriented in the sense that each object has its own clearly defined area of responsibility. The most convenient way to make a separate event-handling object is to use a nested anonymous class. The next version of HelloSwing uses an anonymous inner class for event handling. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.15/20
16 Another JApplet Example import javax.swing.*; // Swing GUI classes are defined here. import java.awt.event.*; // Event handling class are defined here. public class HelloSwing2 extends JApplet { public void init() { JButton bttn = new JButton("Click Me!"); bttn.addactionlistener( new ActionListener() { public void actionperformed(actionevent evt) { String title = "Greetings"; // Shown in box s title bar. String message = "Another hello from Swing."; JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE); } // end actionperformed() }); getcontentpane().add(bttn); } // end init() } // end class HelloSwing2 I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.16/20
17 The Applet Tag and Modifiers The <APPLET> tag is used to add a Java applet to a Web page. This tag must have a matching </APPLET>. A required modifier named CODE gives the name of the compiled class file that contains the applet. If the class file is not located in the same directory with the HTML document containing it, then the modifier, CODEBASE must be used to specify the URL of the directory that contains the class file. If an applet uses a lot of.class files, pacckage all the.class files into a single.zip or.jar file. You have to specify the name of the archive file in an ARCHIVE modifier in the <APPLET> tag. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.17/20
18 Applet Parameters Applets can use applet parameters to customise their behaviour. Applet parameters are specified by using <PARAM> tags, which can only occur between an <APPLET> tag and the closing </APPLET>. The PARAM tag takes the form <PARAM NAME="param-name" VALUE="param-value"> An applet can use the predefined method getparameter() to check for parameters specified in PARAM tags. If you put anything besides PARAM tags between <APPLET> and </APPLET>, it will be ignored by any browser that supports Java. This allows for the inclusion of a message such as "Your browser doesn t support Java". This message will only appear in browsers that don t support Java. I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.18/20
19 A PARAM Example <APPLET code="showmessage.class" WIDTH=200 HEIGHT=50> <PARAM NAME="message" VALUE="Goodbye World!"> <p align=center>sorry, but your browser doesn t support Java!</p> </APPLET> String display; // Instance variable: message to be displayed. public void init() { String value; value = getparameter("message"); // Get message PARAM, if any. if (value == null) display = "Hello World!"; // default value else display = value; // Value from PARAM tag.... I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.19/20
20 References References [1] Introduction to Programming Using Java, Version 4, Eck, David J., URL: I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s p.20/20
Here's the code for our first Applet which will display 'I love Java' as a message in a Web page
Create a Java Applet Those of you who purchased my latest book, Learn to Program with Java, know that in the book, we create a Java program designed to calculate grades for the English, Math and Science
More informationHow To Write A Program For The Web In Java (Java)
21 Applets and Web Programming As noted in Chapter 2, although Java is a general purpose programming language that can be used to create almost any type of computer program, much of the excitement surrounding
More informationThere are some important differences between an applet and a standalone Java application, including the following:
JAVA - APPLET BASICS Copyright tutorialspoint.com An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at its
More informationIntroduction to Java Applets (Deitel chapter 3)
Introduction to Java Applets (Deitel chapter 3) 1 2 Plan Introduction Sample Applets from the Java 2 Software Development Kit Simple Java Applet: Drawing a String Drawing Strings and Lines Adding Floating-Point
More informationJava applets. SwIG Jing He
Java applets SwIG Jing He Outline What is Java? Java Applications Java Applets Java Applets Securities Summary What is Java? Java was conceived by James Gosling at Sun Microsystems Inc. in 1991 Java is
More information5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung
AWT vs. Swing AWT (Abstract Window Toolkit; Package java.awt) Benutzt Steuerelemente des darunterliegenden Betriebssystems Native Code (direkt für die Maschine geschrieben, keine VM); schnell Aussehen
More informationThe Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC).
The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness The Abstract Windowing Toolkit (AWT) was part of the JDK form the beginning,
More informationGUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012
GUIs with Swing Principles of Software Construction: Objects, Design, and Concurrency Jonathan Aldrich and Charlie Garrod Fall 2012 Slides copyright 2012 by Jeffrey Eppinger, Jonathan Aldrich, William
More informationINTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction
INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program
More informationCSC 551: Web Programming. Spring 2004
CSC 551: Web Programming Spring 2004 Java Overview Design goals & features platform independence, portable, secure, simple, object-oriented, Programming models applications vs. applets vs. servlets intro
More informationpublic class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2;
Lecture 15 The Game of "Craps" In the game of "craps" a player throws a pair of dice. If the sum on the faces of the pair of dice after the first toss is 7 or 11 the player wins; if the sum on the first
More informationProgramming with Java GUI components
Programming with Java GUI components Java includes libraries to provide multi-platform support for Graphic User Interface objects. The multi-platform aspect of this is that you can write a program on a
More informationChapter 1 Java Program Design and Development
presentation slides for JAVA, JAVA, JAVA Object-Oriented Problem Solving Third Edition Ralph Morelli Ralph Walde Trinity College Hartford, CT published by Prentice Hall Java, Java, Java Object Oriented
More informationGUI Event-Driven Programming
GUI Event-Driven Programming CSE 331 Software Design & Implementation Slides contain content by Hal Perkins and Michael Hotan 1 Outline User events and callbacks Event objects Event listeners Registering
More informationEssentials of the Java Programming Language
Essentials of the Java Programming Language A Hands-On Guide by Monica Pawlan 350 East Plumeria Drive San Jose, CA 95134 USA May 2013 Part Number TBD v1.0 Sun Microsystems. Inc. All rights reserved If
More informationmethod is never called because it is automatically called by the window manager. An example of overriding the paint() method in an Applet follows:
Applets - Java Programming for the Web An applet is a Java program designed to run in a Java-enabled browser or an applet viewer. In a browser, an applet is called into execution when the APPLET HTML tag
More informationWEEK 2 DAY 14. Writing Java Applets and Java Web Start Applications
WEEK 2 DAY 14 Writing Java Applets and Java Web Start Applications The first exposure of many people to the Java programming language is in the form of applets, small and secure Java programs that run
More informationEssentials of the Java(TM) Programming Language, Part 1
Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:
More informationCS 335 Lecture 06 Java Programming GUI and Swing
CS 335 Lecture 06 Java Programming GUI and Swing Java: Basic GUI Components Swing component overview Event handling Inner classes and anonymous inner classes Examples and various components Layouts Panels
More informationJava is commonly used for deploying applications across a network. Compiled Java code
Module 5 Introduction to Java/Swing Java is commonly used for deploying applications across a network. Compiled Java code may be distributed to different machine architectures, and a native-code interpreter
More informationSyllabus for CS 134 Java Programming
- Java Programming Syllabus Page 1 Syllabus for CS 134 Java Programming Computer Science Course Catalog 2000-2001: This course is an introduction to objectoriented programming using the Java language.
More informationReading and Understanding Java s API Documentation
Appendix Reading and Understanding Java s API Documentation Before Java was born, people judged programming languages solely by their structural features. Does an if statement do what you expect it to
More informationTutorial Reference Manual. Java WireFusion 4.1
Tutorial Reference Manual Java WireFusion 4.1 Contents INTRODUCTION...1 About this Manual...2 REQUIREMENTS...3 User Requirements...3 System Requirements...3 SHORTCUTS...4 DEVELOPMENT ENVIRONMENT...5 Menu
More informationObject Oriented Programming with Java. School of Computer Science University of KwaZulu-Natal
Object Oriented Programming with Java School of Computer Science University of KwaZulu-Natal January 30, 2006 2 Object Oriented Programming with Java Notes for the Computer Science Module Object Oriented
More informationAnimazione in Java. Animazione in Java. Problemi che possono nascere, e loro soluzione. Marco Ronchetti Lezione 1
Animazione in Java Problemi che possono nascere, e loro soluzione Animazione in Java Application MyFrame (JFrame) ClockPanel (JPanel) 1 public class ClockPanel extends JPanel { public ClockPanel void paintcomponent(graphics
More informationFundamentals of Java Programming
Fundamentals of Java Programming This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and exclusive use by instructors
More informationUsing A Frame for Output
Eventos Roteiro Frames Formatting Output Event Handling Entering Data Using Fields in a Frame Creating a Data Entry Field Using a Field Reading Data in an Event Handler Handling Multiple Button Events
More informationCMPT 183 Foundations of Computer Science I
Computer Science is no more about computers than astronomy is about telescopes. -Dijkstra CMPT 183 Foundations of Computer Science I Angel Gutierrez Fall 2013 A few questions Who has used a computer today?
More informationExtending Desktop Applications to the Web
Extending Desktop Applications to the Web Arno Puder San Francisco State University Computer Science Department 1600 Holloway Avenue San Francisco, CA 94132 arno@sfsu.edu Abstract. Web applications have
More informationPackaging and Deploying Java Projects in Forte
CHAPTER 8 Packaging and Deploying Java Projects in Forte This chapter introduces to use Forte s Archive wizard to package project files for deployment. You will also learn how to create shortcut for applications
More informationPrinciples of Software Construction: Objects, Design and Concurrency. GUIs with Swing. toad 15-214. Spring 2013
Principles of Software Construction: Objects, Design and Concurrency GUIs with Swing 15-214 toad Spring 2013 Christian Kästner Charlie Garrod School of Computer Science 2012-13 C Garrod, C Kästner, J Aldrich,
More informationImportance of the Java Inet Address and Public String Hosting System
CSC 551: Web Programming Spring 2004 Combining Java & JavaScript integrating Java with JavaScript calling Java routines from JavaScript controlling an applet from JavaScript accessing JavaScript & HTML
More informationAn Overview of Java. overview-1
An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2
More informationhttp://netbeans.org/kb/docs/java/gui-functionality.html?print=yes
Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user
More informationAssignment # 2: Design Patterns and GUIs
CSUS COLLEGE OF ENGINEERING AND COMPUTER SCIENCE Department of Computer Science CSc 133 Object-Oriented Computer Graphics Programming Spring 2014 John Clevenger Assignment # 2: Design Patterns and GUIs
More informationLab 1A. Create a simple Java application using JBuilder. Part 1: make the simplest Java application Hello World 1. Start Jbuilder. 2.
Lab 1A. Create a simple Java application using JBuilder In this lab exercise, we ll learn how to use a Java integrated development environment (IDE), Borland JBuilder 2005, to develop a simple Java application
More informationThe Java Series. Java Essentials I What is Java? Basic Language Constructs. Java Essentials I. What is Java?. Basic Language Constructs Slide 1
The Java Series Java Essentials I What is Java? Basic Language Constructs Slide 1 What is Java? A general purpose Object Oriented programming language. Created by Sun Microsystems. It s a general purpose
More informationHow to Convert an Application into an Applet.
How to Convert an Application into an Applet. A java application contains a main method. An applet is a java program part of a web page and runs within a browser. I am going to show you three different
More informationTABLE OF CONTENTS...2 INTRODUCTION...3 APPLETS AND APPLICATIONS...3 JAVABEANS...4 EXCEPTION HANDLING...5 JAVA DATABASE CONNECTIVITY (JDBC)...
Advanced Features Trenton Computer Festival May 1 sstt & 2 n d,, 2004 Michael P.. Redlich Senior Research Technician ExxonMobil Research & Engineering michael..p..redlich@exxonmobil..com Table of Contents
More informationTATJA: A Test Automation Tool for Java Applets
TATJA: A Test Automation Tool for Java Applets Matthew Xuereb 19, Sanctuary Street, San Ġwann mxue0001@um.edu.mt Abstract Although there are some very good tools to test Web Applications, such tools neglect
More informationSE 450 Object-Oriented Software Development. Requirements. Topics. Textbooks. Prerequisite: CSC 416
SE 450 Object-Oriented Software Development Instructor: Dr. Xiaoping Jia Office: CST 843 Tel: (312) 362-6251 Fax: (312) 362-6116 E-mail: jia@cs.depaul.edu URL: http://se.cs.depaul.edu/se450/se450.html
More informationIllustration 1: An applet showing constructed responses in an intuitive mode. Note the misprint!
Applets in Java using NetBeans as an IDE (Part 1) C.W. David Department of Chemistry University of Connecticut Storrs, CT 06269-3060 Carl.David@uconn.edu We are interested in creating a teaching/testing
More informationInteractive Programs and Graphics in Java
Interactive Programs and Graphics in Java Alark Joshi Slide credits: Sami Rollins Announcements Lab 1 is due today Questions/concerns? SVN - Subversion Versioning and revision control system 1. allows
More informationGlassfish, JAVA EE, Servlets, JSP, EJB
Glassfish, JAVA EE, Servlets, JSP, EJB Java platform A Java platform comprises the JVM together with supporting class libraries. Java 2 Standard Edition (J2SE) (1999) provides core libraries for data structures,
More informationThe following four software tools are needed to learn to program in Java:
Getting Started In this section, we ll see Java in action. Some demo programs will highlight key features of Java. Since we re just getting started, these programs are intended only to pique your interest.
More informationLecture 5: Java Fundamentals III
Lecture 5: Java Fundamentals III School of Science and Technology The University of New England Trimester 2 2015 Lecture 5: Java Fundamentals III - Operators Reading: Finish reading Chapter 2 of the 2nd
More informationCallbacks. Callbacks Copyright 2007 by Ken Slonneger 1
Callbacks Callbacks refer to a mechanism in which a library or utility class provides a service to clients that are unknown to it when it is defined. Suppose, for example, that a server class creates a
More informationApplets, RMI, JDBC Exam Review
Applets, RMI, JDBC Exam Review Sara Sprenkle Announcements Quiz today Project 2 due tomorrow Exam on Thursday Web programming CPM and servlets vs JSPs Sara Sprenkle - CISC370 2 1 Division of Labor Java
More informationEvent processing in Java: what happens when you click?
Event processing in Java: what happens when you click? Alan Dix In the HCI book chapter 8 (fig 8.5, p. 298), notification-based user interface programming is described. Java uses this paradigm and you
More informationCaptainCasa. CaptainCasa Enterprise Client. CaptainCasa Enterprise Client. Feature Overview
Feature Overview Page 1 Technology Client Server Client-Server Communication Client Runtime Application Deployment Java Swing based (JRE 1.6), generic rich frontend client. HTML based thin frontend client
More informationGraphical User Interfaces
M14_REGE1813_02_SE_C14.qxd 2/10/10 3:43 PM Page 822 Chapter14 Graphical User Interfaces 14.1 GUI Basics Graphical Input and Output with Option Panes Working with Frames Buttons, Text Fields, and Labels
More informationUsing Impatica for Power Point
Using Impatica for Power Point What is Impatica? Impatica is a tool that will help you to compress PowerPoint presentations and convert them into a more efficient format for web delivery. Impatica for
More informationChain of Responsibility
Chain of Responsibility Comp-303 : Programming Techniques Lecture 21 Alexandre Denault Computer Science McGill University Winter 2004 April 1, 2004 Lecture 21 Comp 303 : Chain of Responsibility Page 1
More informationManagement Information Systems 260 Web Programming Fall 2006 (CRN: 42459)
Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Class Time: 6:00 8:05 p.m. (T,Th) Venue: WSL 5 Web Site: www.pbvusd.net/mis260 Instructor Name: Terrell Tucker Office: BDC 127
More informationJava History. Java History (cont'd)
Java History Created by James Gosling et. al. at Sun Microsystems in 1991 "The Green Team" Were to investigate "convergence" technologies Gosling created a processor-independent language for '*7', a 2-way
More information11. Applets, normal window applications, packaging and sharing your work
11. Applets, normal window applications, packaging and sharing your work In this chapter Converting Full Screen experiments into normal window applications, Packaging and sharing applications packaging
More informationcore. Volume I - Fundamentals Seventh Edition Sun Microsystems Press A Prentice Hall Title ULB Darmstadt
core. 2008 AGI-Information Management Consultants May be used for personal purporses only or by libraries associated to dandelon.com network. Volume I - Fundamentals Seventh Edition CAY S. HORSTMANN GARY
More informationHow To Program In Java (Ipt) With A Bean And An Animated Object In A Powerpoint (For A Powerbook)
Graphic Interface Programming II Applets and Beans and animation in Java IT Uppsala universitet Applets Small programs embedded in web pages
More informationWeb Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence
Web Development Owen Sacco ICS2205/ICS2230 Web Intelligence Introduction Client-Side scripting involves using programming technologies to build web pages and applications that are run on the client (i.e.
More informationProgramming in Access VBA
PART I Programming in Access VBA In this part, you will learn all about how Visual Basic for Applications (VBA) works for Access 2010. A number of new VBA features have been incorporated into the 2010
More informationJava Interview Questions and Answers
1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java
More informationTo begin, visit this URL: http://www.ibm.com/software/rational/products/rdp
Rational Developer for Power (RDp) Trial Download and Installation Instructions Notes You should complete the following instructions using Internet Explorer or Firefox with Java enabled. You should disable
More informationUML Class Diagrams (1.8.7) 9/2/2009
8 UML Class Diagrams Java programs usually involve multiple classes, and there can be many dependencies among these classes. To fully understand a multiple class program, it is necessary to understand
More informationC# and Other Languages
C# and Other Languages Rob Miles Department of Computer Science Why do we have lots of Programming Languages? Different developer audiences Different application areas/target platforms Graphics, AI, List
More informationCGI Programming. What is CGI?
CGI Programming What is CGI? Common Gateway Interface A means of running an executable program via the Web. CGI is not a Perl-specific concept. Almost any language can produce CGI programs even C++ (gasp!!)
More informationHow To Use The Command Pattern In Java.Com (Programming) To Create A Program That Is Atomic And Is Not A Command Pattern (Programmer)
CS 342: Object-Oriented Software Development Lab Command Pattern and Combinations David L. Levine Christopher D. Gill Department of Computer Science Washington University, St. Louis levine,cdgill@cs.wustl.edu
More informationABSTRACT INTRODUCTION. driver for Java is capable of sending SQL statements, to access and update SAS data.
A SAS/IntrNet Java Program for Delivering Graphical Information of Remotely Monitored Processes. Wing K Chan, The Pennsylvania State University, University Park, Pennsylvania David C. Steven, The Pennsylvania
More informationINTRODUCTION TO OBJECTIVE-C CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 12 09/29/2011
INTRODUCTION TO OBJECTIVE-C CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 12 09/29/2011 1 Goals of the Lecture Present an introduction to Objective-C 2.0 Coverage of the language will be INCOMPLETE
More informationTutorial: Time Of Day Part 2 GUI Design in NetBeans
Tutorial: Time Of Day Part 2 GUI Design in NetBeans October 7, 2010 Author Goals Kees Hemerik / Gerard Zwaan Getting acquainted with NetBeans GUI Builder Illustrate the separation between GUI and computation
More informationDeveloping NFC Applications on the Android Platform. The Definitive Resource
Developing NFC Applications on the Android Platform The Definitive Resource Part 1 By Kyle Lampert Introduction This guide will use examples from Mac OS X, but the steps are easily adaptable for modern
More informationThe Web Web page Links 16-3
Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML documents Describe several specific HTML tags and their purposes 16-1 Chapter Goals
More informationFirst Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science
First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca
More informationMicrosoft PowerPoint Exercises 4
Microsoft PowerPoint Exercises 4 In these exercises, you will be working with your Music Presentation file used in part 1 and 2. Open that file if you haven t already done so. Exercise 1. Slide Sorter
More informationCSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus
CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking
More informationAn Overview of Oracle Forms Server Architecture. An Oracle Technical White Paper April 2000
An Oracle Technical White Paper INTRODUCTION This paper is designed to provide you with an overview of some of the key points of the Oracle Forms Server architecture and the processes involved when forms
More informationExample. Represent this as XML
Example INF 221 program class INF 133 quiz Assignment Represent this as XML JSON There is not an absolutely correct answer to how to interpret this tree in the respective languages. There are multiple
More informationJava Mouse and Keyboard Methods
7 Java Mouse and Keyboard Methods 7.1 Introduction The previous chapters have discussed the Java programming language. This chapter investigates event-driven programs. Traditional methods of programming
More informationAutodesk Installation
Autodesk Installation All of the Autodesk products install in a similar fashion. I have included some screenshots of what you can expect to see during the installations. The first thing you need to check,
More informationHomework/Program #5 Solutions
Homework/Program #5 Solutions Problem #1 (20 points) Using the standard Java Scanner class. Look at http://natch3z.blogspot.com/2008/11/read-text-file-using-javautilscanner.html as an exampleof using the
More informationFachbereich Informatik und Elektrotechnik Java Applets. Programming in Java. Java Applets. Programming in Java, Helmut Dispert
Java Applets Programming in Java Java Applets Java Applets applet= app = application snippet = Anwendungsschnipsel An applet is a small program that is intended not to be run on its own, but rather to
More informationwww.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk
CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling
More informationHypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
More informationDemo: Controlling.NET Windows Forms from a Java Application. Version 7.3
Demo: Controlling.NET Windows Forms from a Java Application Version 7.3 JNBridge, LLC www.jnbridge.com COPYRIGHT 2002 2015 JNBridge, LLC. All rights reserved. JNBridge is a registered trademark and JNBridgePro
More informationLAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development
LAB 1 Familiarization of Rational Rose Environment And UML for small Java Application Development OBJECTIVE AND BACKGROUND The purpose of this first UML lab is to familiarize programmers with Rational
More informationEclipse with Mac OSX Getting Started Selecting Your Workspace. Creating a Project.
Eclipse with Mac OSX Java developers have quickly made Eclipse one of the most popular Java coding tools on Mac OS X. But although Eclipse is a comfortable tool to use every day once you know it, it is
More informationNexawebホワイトペーパー. Developing with Nexaweb ~ Nexaweb to Improve Development Productivity and Maintainability
Nexawebホワイトペーパー Developing with Nexaweb ~ Nexaweb to Improve Development Productivity and Maintainability Nexaweb Technologies, Inc. February 2012 Overview Many companies today are creating rich internet
More informationSendspace Wizard Desktop Tool Step-By-Step Guide
Sendspace Wizard Desktop Tool Step-By-Step Guide Copyright 2007 by sendspace.com This publication is designed to provide accurate and authoritative information for users of sendspace, the easy big file
More informationObject-Oriented Programming and Data Structures
Second AP * Edition with GridWorld Java Methods Object-Oriented Programming and Data Structures Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Software, Inc. Skylight Publishing
More informationPackaging and Deploying Java Projects in JBuilder
Packaging and Deploying Java Projects in JBuilder NOTE: This supplemental material may be used at the end of Chapter 12, Applets and Advanced Graphics. Archive builder wizard is available in JBuilder Professional
More informationTutorial: Getting Started
9 Tutorial: Getting Started INFRASTRUCTURE A MAKEFILE PLAIN HELLO WORLD APERIODIC HELLO WORLD PERIODIC HELLO WORLD WATCH THOSE REAL-TIME PRIORITIES THEY ARE SERIOUS SUMMARY Getting started with a new platform
More informationSpecialized Android APP Development Program with Java (SAADPJ) Duration 2 months
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Our program is a practical knowledge oriented program aimed at making innovative and attractive applications for mobile
More informationIntroduction to IBM Digital Analytics Michigan.gov
Introduction to IBM Digital Analytics Michigan.gov Revised: October 17, 2013 Table of Contents Overview... 3 Accessing Digital Analytics... 3 System Requirements... 3 Main Page... 3 Top Navigation... 4
More informationFor Introduction to Java Programming, 5E By Y. Daniel Liang
Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,
More informationcreating a text-based editor for eclipse
creating a text-based editor for eclipse By Elwin Ho Contact author at: Elwin.Ho@hp.com June 2003 2003 HEWLETT-PACKARD COMPANY TABLE OF CONTENTS Purpose...3 Overview of the Eclipse Workbench...4 Creating
More informationJava the UML Way: Integrating Object-Oriented Design and Programming
Java the UML Way: Integrating Object-Oriented Design and Programming by Else Lervik and Vegard B. Havdal ISBN 0-470-84386-1 John Wiley & Sons, Ltd. Table of Contents Preface xi 1 Introduction 1 1.1 Preliminaries
More informationMEAP Edition Manning Early Access Program Hello! ios Development version 14
MEAP Edition Manning Early Access Program Hello! ios Development version 14 Copyright 2013 Manning Publications For more information on this and other Manning titles go to www.manning.com brief contents
More informationUsing Karel with Eclipse
Mehran Sahami Handout #6 CS 106A September 23, 2015 Using Karel with Eclipse Based on a handout by Eric Roberts Once you have downloaded a copy of Eclipse as described in Handout #5, your next task is
More informationSwing. A Quick Tutorial on Programming Swing Applications
Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:
More informationCSE 452: Programming Languages. Acknowledgements. Contents. Java and its Evolution
CSE 452: Programming Languages Java and its Evolution Acknowledgements Rajkumar Buyya 2 Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java
More informationHP INTEGRATED ARCHIVE PLATFORM
You can read the recommendations in the user guide, the technical guide or the installation guide for HP INTEGRATED ARCHIVE PLATFORM. You'll find the answers to all your questions on the HP INTEGRATED
More information