Copyright ©1999 by AAA+ Software Forschungs- und Entwicklungs Ges.m.b.H.  All Rights Reserved.  Revision 2.1 - Jan 19, 1999.



HTTP Source Browser Example

This example demonstrates the power of using Joy to combine Java and Objective-C. It is a small browser application.

It can be run entirely within Interface Builder's test mode!

Just open the application, by double clicking on the .nib file. Use the test mode (hit Command-R, or Ctrl-R on Windows) to see it in action!

How it works

There is a window which has a space for you to type in a web page's address at the top. It has a display which shows the fetched web page. Type in something (e.g. www.apple.com) into the field at the top, hit return, and see the results of the query in the main text area.

This shows the power of Joy and Java combined. The windowing manipulation is done using the Yellow Box frameworks. The document is fetched by using the HTTP protocol directly, demonstrating Java's socket libraries. No HTTP functions have been used to do the page fetching. No attempt has been made to render the resulting HTML. (Although libraries for both exist, the point of this example is socket-level programming in Java through Joy).

See the source-code, Interpreter.js, for more details. To see this, open the Browser.nib InterfaceBuilder file, and double click on the Interpreter icon.


Document created by Adrian Smith of AAA+ Software
19 January 1999