Chaman Sabharwal, Ph.D., Professor Computer Science

hundredcarriageΛογισμικό & κατασκευή λογ/κού

3 Νοε 2013 (πριν από 3 χρόνια και 9 μήνες)

83 εμφανίσεις

Chaman Sabharwal, Ph.D., Professor Computer Science


CS 342 Graphical User Interfaces and Visualization with Java

Pre
-
requisites: CS253, strong background in C++

Book: Deitel H.M. and P.J. Deitel, Java: How to Program

9
th

Edition, Prentice Hall, 2012.


Topics

Do Chapters 14, 23, 24, 25, 26, 27 Topics in Java

23
-

Applets, Applications

14
-

GUI Components button, checkbox, radiobutton, combobox, list,

24
-

Multimedia audio, images

25
-

More GUI Components Slider, Menus, Internal Frames, popup menus

26
-

MultiTasking,

27
-

Networking

(optional) 15


Mouse, Graphics & 2D Java



Review Chapters 4, 5, 6, 3, 8, 9, 10 Basic Java (Read on your own)

11, 16
-

Arrays, Strings

1 What is Java?

Quick start to Java: Compile and Execute

Java program Anatomy

Java Appli
cation

Java Applet, JApplet

Java compiler javac

Java appletviewer, Apple Applet Runner

Javadoc for documentation

Jar File

2 Using Control Structures, Methods

Flow of control

Conditional / Decision / test Statements

Multiple Alternative Conditions: switch

Loops: for, while, dowhile

Methods/Functions, Method Overloading, Method Overriding


Special Methods: init, start, paint, run, stop, destroy

3 Classes

Java Classes

class

static

fields

methods

finalize

inner classes

anonymous classes and anonymous object
s

Font class

FontMetrics class

Color class

JTextAreaJButton

JFrame

JMenu



4 Scope of variables/methods

Modifiers for fields/methods/classes

Visibility, Accessibility, Scope

public

private

protected (default)

Lifetime, Duration

static

Inner Classes



Examples

Interfaces

Inner classes

JPanel

JInternalFrame

BorderLayout

manager default for JApplet and JFrame

Applet vs Application

Animation



5 Network Communications

URL

AppletContext

ShowDocument

GridLayout



6
Multimedia


Audio, Images

























Text

























Graphics

























Mouse

Audio


play()

loop()

stop()

AudioClips

Multiple AudioClips

























Video


Digital Images

Scaling Images, Double buffering


7 Graphical User Interfac
es


GUI_Controls



JCheckbox, JRadioButton



JPassword,


JComboBox, JList, JMenu, JMenuItem, JPopupMenu


GUI_Layouts


JPanel, JFrame


GUI_Layout Managers


FlowLayout


BorderLayout


GridLayOut


Mouse functions and events

8 Threads and Animation

Threads
and Animation













Clock, TickerTape

MultiThreading

Runnable interface



9 Other Swing Components Graphical user interfaces

GUI_Controls Atomic Level

GUI_Layouts Intermediate Level

GUI_Layout Managers


MouseEvents

Custom Look&Feel

MVC

GUI_Layout






Menus






JMenuBar






JMenu






JMenuItem






JMenuCheckBoxItem






JMenuRadioButtonItem






JToolBar


JProgressBar

GUI_Utilities

JTable

JTree



10 Networking

URLs

Networking: Basic Terminology

What is TCP/IP?

How to write client/server
application

What is a client?

What is a server?

What is Internet Protocol?

What is an IP address?

What is a Domain Name?

What is a Domain Name System(Server)?

What is Java InetAddress class?

What is a Port Number?

Sockets



More Internet IO

Examples

Read
text files from other sites via
-
URLs, Sockets

Sending Email without CGI

Application survey form