Internet Programming - Java - Summer 2006

Home

Friday, August 11th, 2006

 

We will schedule 2 programming days next week in FMRC

I posted the code for the "documentation only" proxy / web server we used during the exam. Its based on WebServer3 source code.

 

Tuesday, August 8th, 2006

 

Exam Questions:

1. Create an application to read and write text files using swing

2. Using Regular expressions parse the links from a HTML file (This program does not need GUI) (java.io or java.net)

3. Create a JDBC application to query SQL Server database (GUI)

4. Given a table on SQL Server write a GUI form to insert data into the table and display the information

5. Create a Java based Browser using JEditorPane and make the URLs work

6. From a text file of a given CSV format


 

Friday, August 4th, 2006

 

In Lecture 9 we programed a simple web server that serves static pages.

 

Version 1 of Web server:

Only says "Hello Client" to any web server , not multithreaded

Version 2 of Web server

Serves static pages, has MIME definitions for .htm, .html, .jpg, .gif and .txt, not multithreaded

Root Folder specification

Error 404 implemented

Version 3 of Web server:

config file to read port and root folder

config file read MIME types

multithreaded

Version 4 of web server:

HTTP 1.1 Implementation

 

Thursday, August 3rd, 2006

 

Assignment #4

1. Create a Simple Text Browser using URL object and Java Swing (more credits if you make the links work)

2. From a text file of the following format


SID FirstName LastName

3. create a javax.swing.JTree representation of the files in your eclipse work space. Use java.io.File class

 

Tuesday, August 1st, 2006

 

Open Source JDBQuery Project Created. Visit it here

You will need SVN client to download and modify the code. A good SVN Client can be found here

 

For Web Projects we will be using Resin

 

Thursday, July 27th, 2006

 

Assignment #3

1.

Create a table in MS Access called Student with the following fields

StudentID AutoNumber

FirstName Text

LasName Text

 

Create a swing application to insert new students in to this database

2.

Display the student data in a JTable

3.

Take the example of DBBrowserUI from the class and modify it to load columns only when the table node is expanded.

 

Here is a tutorial for Trees

 

Teusday, July 25th, 2006

 

Here is a very good example of painting using AWT / Swing

 

http://java.sun.com/products/jfc/tsc/articles/painting/

 

Use the following code to exit the frame on closing the Frame

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

 

Creating an ODBC DSN tutorial is available on the tutorials section

 

Tuesday, July 18th, 2006

 

The quiz soution has been posted to the code section. Also from assignment #1 if you would like to see how to create a circle with points every 30 degrees, look at the example here. the points on the circle could be found using the following.

x = a + r cos(t)
y = b + r sin(t).

Wednesday, July 13th, 2006

 

Understand the example to search for a pattern in a string using the basic string processing methods as indexOf and substring operations

 

This program will lead us to the discussion of Regular Expressions in the java.util.regex pacakage. Also the example above is very good in understanding layouts and event handling.

Tuesday, July 11th, 2006

 

 

Thursday, July 6th, 2006

Topics

- Classes | Instances

- Basic Data Types

- Encapsulation

- Download and Use Eclipse

- Methods

- toString()

 

 

 

 

©Copyright 2009 Gavi Narra