Developing Java Applications: A Tutorial

You can now write Yellow Box programs in Java™ as well as in Objective-C, C++, C, and PostScript. You can build a Yellow Box application that is written exclusively in Java or that is a mix of Java and another supported language.

This tutorial walks through the basic steps for developing a Java Yellow Box application with the features available in the current releases of Mac OS X and Yellow Box for Windows.

This tutorial is available in PDF as well.

Fast Track to Java Development

The Yellow Box's Java Feature

The Java Bridge

Developing 100% Pure Java Applications

In this tutorial you will build a simple application that converts temperature values between Celsius and Fahrenheit; and displays a different image depending on the temperature range. The tutorial has three parts, which you should complete in the following order:

Building a Simple Application

Explains how to create a project and a graphical user interface, define a custom controller class, and connect an instance of that class to other objects in the application. It also shows how you must change the source code files generated by Interface Builder to be valid Java files.

Creating a Custom View

Shows how to create a custom view object using Interface Builder and Project Builder. (The procedure varies from that for controller classes).

Debugging Java Applications

Illustrates the use of Project Builder and its JavaDebug facility to debug Yellow Box Java applications. It also shows how you can debug projects that contain both Java code and Objective-C code.

 

 

Copyright 1998 Apple Computer, Inc. All rights reserved.