![]() |
Internet Programming - Java - Summer 2006 |
|
| Home | Syllabus | Tutorials | Resources | Code | Contact | ||
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
- Read the file line by line using BufferedReader
- The column seperator is a , (CSV format)
- load to table using JDBC
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
- Read the file line by line using BufferedReader
- The column seperator is a , (CSV format)
- User JDBC to insert this data into our database @ objectgraph.com
3. create a
javax.swing.JTreerepresentation of the files in your eclipse work space. Usejava.io.Fileclass
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).
- Assignment #2:
- Make the highlighting feature work properly in the TextProcessingUI.java example
(HINT: Look at the classjavax.swing.text.Highlighter)- Create a Java Paint Application.
- Research
java.util.regexpackage
Wednesday, July 13th, 2006
Understand the example to search for a pattern in a string using the basic string processing methods as
indexOfandsubstringoperations
This program will lead us to the discussion of Regular Expressions in the
java.util.regexpacakage. Also the example above is very good in understanding layouts and event handling.
Tuesday, July 11th, 2006
- Assignment #1:
- Test any 10 methods in Math Class.
- Add very large numbers using java.math package
- Find components to add to containers in java.awt library
- Utilizing the java.awt.Graphics class draw a Clock on a frame (Extra Credit for students who make it work)
Thursday, July 6th, 2006
Topics
- Classes | Instances
- Basic Data Types
- Encapsulation
- Download and Use Eclipse
- Methods
- toString()
©Copyright
2009 Gavi Narra |