Home

Project

Agent

GIS

Forum

Contact

Search for:

   
 

 

 

 

    The Java programming language is a high-level language that can be characterized by simplicity, object-oriented portability and security. It also supports distributed components programming, multithreaded and dynamic program, whose technologies are essential to build automatic software agents. There are lots of applications that adopt Java as the programming language to develop software agents. This page serves as a Java programming test bad to present examples using Java applets and Java applications. Java applet is a small application-program component that typically executes in a client's Web browser, but can execute in a variety of other simple applications or devices; Java applets support the applet programming model and may be downloaded through the Internet via a Web site and run directly on a remote computer; Java applets are often used to create Web page effects (http:// www.atis.org/tg2k/_java_applet.html). Java application, on the other hand, is a stand-along program that can be executed without client's web browser. Sources code are included.
 
SimpleButton:
 
This applet displays the functions of buttons that can be used in the future user - computer graphic interface.
   
Key This is a demonstrations for the user-computer interaction. When you type in the letter using the keyboard, the letter is displayed on the screen.
   
:DrawLine:
 
This applet shows the capabilities of "DRAW" class embedded in Java platform that enable you to draw different kinds of maps. The mouse event of click, drag and move was traced to draw the line.
  .
Checkbox:

 

This applet applies the checkbox functions in designing the interactive interface for demonstration. When you click one or multiple boxes, the total amount of the cost will be calculated and showed in the bottom of the canvas.
   
Add Button Demon This example creates a list of random numbers in a list. Pressing the Add button adds more random numbers. Pressing Remove removes the selected number from the list. Pressing Shift-Remove removes all the numbers from the list.

 

 
Adjust Face
 
This example implements a happy/sad face meter. The scrollbar is used to adjust the face. The class Face has a setSmile() method that takes real number from 0 to 1. The higher the value, the happier the face. The lower the value, the sadder the face.
   
Adjust Scroll This example demonstrates how to get adjustment events from a component that fires them. The example creates a horizontal scrollbar and listens for adjustment events from the scrollbar In response to an adjustment event, the specifics of the event are shown as the label.

 
 
Draw Arc This Example shows the functions of the drawArc.
   
Draw Canvas This example demonstrates how to build a custom button.
The button displays a blinking colored circle rather than
a text string. A thread is created to blink the button. The custom also overrides enabled and disabled method in
order to pain different images depending on the state of
this property. The custom button also fires an action event when clicked. This example creates three colored buttons to control the color of the main canvas.
   
Draw Graphics This example allows to select different color to draw different graphics, including circles, rectangles and ovals.
   
Check Colors This example creates a checkbox group and a collection of
colored canvases. Clicking a checkbox causes its associated color canvas to be selected. Also, clicking a colored canvas causes its associated checkbox to be current.
   
Check Label This example creates a checkbox and a text field. Pressing Return in textfield causes the ckeckbox label to be set to the contents of the text field. When the label changes, so does its minimum size. This example also shows how to cause the checkbox's parent to properly resize the checkbox.
 
   
Choice Removal This example creates a choice and a row of buttons that control the insertion and removal of items from the choice.
   
   
   
   
Intelligent Data Processing Service (Demo)  

The prototype was developed for RHESSys (Regional Hydro Ecologic Simulation System), available in the Department of Geography. It guilds the end-user to go though the procedure of executing RHESSys.

 

 

 

 

 

Copyright©2002, All Right Reserved

Department of Geography, San Diego State University