Demo Applets of MJ

Drawing tool

Abstract

As an example of a typical object-oriented application, we implemented a drawing tool, by which the user can draw figures such as circles and rectangles. This program is extensible by adding extension modules. Extension modules can add new kinds of figures or new kinds of operations to the figures.

Currently, the following 11 modules have been implemented.

More than 2^9 varieties of applications can be realized because all modules except base and select can be arbitrarily selected.

Screenshot

This is a screenshot of the drawing tool incorporating all modules currently implemented.

Applets

The following are some of the possible combinations:
(If you are using the Netscape browser, the first applet loaded may be cached. To load another applet, restart the browser.)

  1. { base }
  2. { base, line }
  3. { base, line, rect, elli, tri, oct }
  4. { base, line, rect, elli, tri, oct, select }
  5. { base, line, rect, elli, tri, oct, select, delete }
  6. { base, line, rect, elli, tri, oct, select, move }
  7. { base, line, rect, elli, tri, oct, dump }
  8. { base, line, rect, elli, tri, oct, area }
  9. { base, line, rect, elli, tri, oct, select, delete, move, dump, area }
How to use the Drawing Tool:
Select one of the figure buttons on the lower tool-bar; then to draw the figure, drag the white canvas.

Source code

DrawFrameMJT.txt

Coffee cup

Abstract

This is a simple applet demonstration program: "I-appli" (Java for NTT DoCoMo cellular phones), where a coffee-cup moves with the arrow keys.

This program consists of the following 5 Modules:

Applets

Three modules (multi, vapor and time) can be arbitrarily selected.
The following are some of the possible combinations:
(If you are using the Netscape browser, the first applet loaded may be cached. To load another applet, restart the browser).

  1. { base, cup }
  2. { base, cup, multi }
  3. { base, cup, vapor }
  4. { base, cup, vapor, multi }
  5. { base, cup, vapor, multi, time }
These applets utilize the "iEmulator", by T. Fukuno (http://uni.himitsukichi.com/iap/) in order to execute I-appli as applets.

I-appli

Only for Japanese NTT DoCoMo cellular phones.
demo/i/index.html

Source code


[MJ Top page]