Java Intro Chris North cs3724: HCI. Presentations john randal, tom shultz Vote: UI Hall of Fame/Shame?

Slides:



Advertisements
Similar presentations
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Advertisements

Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
Lecture 24 Applets. Introduction to Applets Applets should NOT have main method but rather init, stop, paint etc They should be run through javac compiler.
Principles of Object-Oriented Software Development The language Java.
Created by Ron Beglieter (based on the Java Tutorial) 1 What is Java? Java technology is both a programming language and a platform; Programming Language.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
28-Jun-15 Applets. 2 An applet is a program that is typically embedded in a Web page and can be run from a browser You need special HTML in the Web page.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Info Vis: Multi-Dimensional Data Chris North cs3724: HCI.
Java Swing Chris North cs3724: HCI. AWT to Swing AWT: Abstract Windowing Toolkit import java.awt.* Swing: new with Java2 import javax.swing.* Extends.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
EE2E1. JAVA Programming Introduction Dr. Mike Spann
Introduction to Java Programming with JBuilder 4
Applets  The Applet Class  The HTML Tag F Passing Parameters to Applets.
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 16: Java Applets & AWT Fundamentals of Web Programming.
Information Design and Visualization
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Intro to Java 2 By Geb Thomas Based on the Java TutorialJava Tutorial.
Applets CS 3331 Sections 3.3 & 4.7 of [Jia03].
Applets and Frames CS 21a: Introduction to Computing I First Semester,
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback.
POS 406 Java Technology And Beginning Java Code
Introduction to Java Programming with Forte Y. Daniel Liang.
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Ganesh Viswanathan Introduction to Applets Course Lecture Slides 29 th July 2010.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
C# Versus Java Author: Eaddy, Marc Source: Software Tools for the Professional Programmer. Dr. Dobb's Journal. Feb2001, Vol. 26 Issue 2, p74 Hong Lu CS699A.
Introduction to Java Applets Sangeetha Parthasarathy 05/21/2001.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
CSC 205 – Java Programming II Applet. Types of Java Programs Applets Applications Console applications Graphics applications Applications are stand-alone.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Object Oriented Programming Examples: C++, Java Advantages: 1. reusibility of code 2. ability to adapt (extend) previously written code.
Info Vis: Multi-Dimensional Data Chris North cs3724: HCI.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
Your name CSCI/CMPE 3326 Object-Oriented Programming in Java Dongchul Kim Department of Computer Science University of Texas – Pan American 1.Applet.
1 Applets. 2 Design of Applets 3 Sun wrote Java to be executable within a hosting application browser The applications are applets. An applet is downloaded.
1 Applications & Applets Standalone applications & Java applets Peter Mozelius DSV/UCSC.
Review Chris North cs3724: HCI. Midterm Topics Scenario-based design: (ch 1-4) SBD background –metrics, tradeoffs, scenarios Requirements analysis –Field.
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Applet An applet is a Java program that runs in a Web browser. An applet can be.
User Interface Programming in C#: Basics and Events Chris North CS 3724: HCI.
Java Graphics Chris North cs3724: HCI. Presentations peter hou Vote: UI Hall of Fame/Shame?
Applets. 9/04/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved L12: Applets Slide 2 Applets Usually.
Components Chris North cs3724: HCI. Presentations taylor mitchell chris henry Vote: UI Hall of Fame/Shame?
Java Swing and Events Chris North cs3724: HCI. Presentations nadine edwards, steve terhar Vote: UI Hall of Fame/Shame?
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Applications Active Web Documents Active Web Documents.
Information Visualization: Navigation
A Programming Language for Web-based Computing with Graphics
Lecture 09 Applets.
Distributed Computing, M. L. Liu
Distributed Computing, M. L. Liu
Information Design and Visualization
A Programming Language for
Information Visualization (Part 1)
Information Visualization
Chap 1. Getting Started Objectives
A Programming Language for
A Brief History January 1996: first official release JDK 1.0
Presentation transcript:

Java Intro Chris North cs3724: HCI

Presentations john randal, tom shultz Vote: UI Hall of Fame/Shame?

Quiz Visualization design principles: show me the data Increase info density Overview first, zoom&filter, details on demand … How to map data to graphics? 1. Data items become marks 2. Data values map to mark attributes

More Quiz Multi-dimensional data? multiple attributes Types of scale in multi-dim data? # points # attributes ranges of data values 3 multi-dim visualizations? par coords Spotfire: mapping, brush&link, DQ Tablelens: graphical table

Data Scale # of attributes (dimensionality) # of items # of possible values (e.g. bits/value)

Spotfire Multiple views: brushing and linking Dynamic Queries Details window

TableLens (Eureka by Inxight) Visual encoding of cell values, sorting Details expand within context

Parallel Coordinates (XmdvTool)

Par coords: attrs, <1000 points Tablelens: attrs, 1000, more by grouping Spotfire: 10 attrs, more w/ DQ, 100,000 pts

Homework #2: Info. Vis. Tools Get some data: Tabular, >=5 attributes (columns), >=500 items (rows) Use 2 visualization tools + Excel: Spotfire, TableLens, Parallel Coordinates Mcbryde 104c 2 page report: Discoveries in data Comparison of tools Due: Feb 19: A-K Feb 21: L-Z

Technologies VisualBasic Fast prototyping Help stinks Lack of control, multi-threading, POWER! Code tends to be ugly, variation, arbitrary Java Power Lots to learn Slow development, except jbuilder? Complexity Tons of code Help is good

Java materials Java 2 = sdk 1.2 or better Documentation: Tutorials, reference, API Sams “Teach yourself Java2 in 21 days” Borland JBuilder 6 Free! Cross between VB and VC++

Java differences Basic statements identical to C++ Object-oriented only! No.h files Garbage collection: no delete No pointers (object references only) GUI: AWT, Swing Applet/application Single inheritance, interfaces Packaging No global vars Error Handling, exceptions (try, catch) E.g. Array bounds checking Security Objects, components

Java compiling Code: myclass.java (text file) Compile: javac myclass.java Creates: myclass.class(byte code) Run: java myclass Java virtual machine, interpets/compiles (machine code) Packaging: jar Or use JBuilder, like VC++

Java Applications Run from command line, like.exe HelloWorldApp.java: Class helloWorld { public static void main(String[] args){ system.out.println(“Hello World!”); } javac HelloWorldApp.java Java HelloWorldApp Hello World! Can be main( ) in any/all classes

Java Applets Run in a web browser, like.ocx control HelloWorldApplet.java: Import java.awt.* public Class helloWorld extends javax.swing.JApplet { public void init(){ setBackground(Color.white); } public void paint(Graphics g){ g.setColor(Color.black); g.drawString(“Hello World!”, 10,10); } javac HelloWorldApplet.java appletviewer HelloWorldApplet Hello World!

Java Applets HelloWorldApplet.html: Need java. Put.html and.class on website Java plug-in Hello World!

Applet Methods init( ) - initialization start( ) - resume processing (e.g. animations) stop( )- pause destroy( )- cleanup paint( )- redraw stuff (‘expose’ event)

Applet Security No read/write on client machine Can’t execute programs on client machine Communicate only with server “Java applet window” Warning Certificates

JBuilder

Upcoming Java Topics GUIs: Swing, AWT, MVC Event handling, listeners Graphics Animation, threads Components, JavaBeans Databases, JDBC

Next Midterm: feb 26, tues Presentations: proj1 design or UI critique Next Tues: mohamed hassoun, aaron dalton Next Thurs: nadine edwards, steve terhar

Project 2: Java Teams due today Get started on design 0: form teams of 3 (feb 14) 1: design(feb 28) 2: initial implementation(mid march) 3: final implementation (early April)