any idea similar to this view?

i'm still new in learning Java..by using JCreator LE, i've try to make a simple task..can anybody help me by giving any idea similar to my task attach below?

import java.awt.event.*;

import java.awt.*;

class Aplikasi {

public static void main(String[] args) {

ApplicationFrame tingkap;

Bekas bekas;

Cip cip1, cip2, cip3;

tingkap = new ApplicationFrame(400, 400);

tingkap.setTitle("mInE");

bekas = new Bekas(50, 150, Color.white, "E");

tingkap.masukkan(bekas);

cip1 = new Cip(20, 30, Color.red, "A");

cip1.setJejari(30);

tingkap.masukkan(cip1);

cip2 = new Cip(100, 30, Color.blue, "B");

cip2.setJejari(30);

tingkap.masukkan(cip2);

cip3 = new Cip(180, 30, Color.yellow, "C");

cip3.setJejari(30);

tingkap.masukkan(cip3);

tingkap.paparHasil();

tingkap.pungut("A");

tingkap.paparHasil();

bekas.masukkan(cip1);

tingkap.paparHasil();

tingkap.pungut("B");

tingkap.paparHasil();

bekas.masukkan(cip2);

tingkap.paparHasil();

tingkap.pungut("C");

tingkap.paparHasil();

bekas.masukkan(cip3);

tingkap.paparHasil();

}

}

[1223 byte] By [sakurabiru_86a] at [2007-10-3 2:39:21]
# 1

WTF?

One bit of advice: Putting all your code in a single main method is not very object-oriented. This is procedural coding at its worst.

I have no idea what you're trying to do (looks like an AWT frame). What is the problem? Does the code not compile? If there are compilation errors, fix them. Does it not run the way you think it should? Please describe the error.

This is an example of a poorly posed question.

Please read this:

http://catb.org/~esr/faqs/smart-questions.html

%

duffymoa at 2007-7-14 19:37:36 > top of Java-index,Other Topics,Patterns & OO Design...