B.A.P
Wednesday, 19 December 2012
APPLET
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
///////////////////////////////////////////////////////////// ClockAnalogBuf
public class ClockAnalogBuf extends JApplet {
//=============================================================== fields
private Clock _clock; // Our clock component.
//================================================================= main
public static void main(String[] args) {
JFrame window = new JFrame();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.setTitle("Analog Clock");
window.setContentPane(new ClockAnalogBuf());
window.pack(); // Layout components
window.setLocationRelativeTo(null); // Center window.
window.setVisible(true);
}
//========================================================== constructor
public ClockAnalogBuf() {
//... Create an instance of our new clock component.
_clock = new Clock();
//... Set the applet's layout and add the clock to it.
setLayout(new BorderLayout());
add(_clock, BorderLayout.CENTER);
//... Start the clock running.
start();
}
//=============================================================== start
@Override public void start() {
_clock.start();
}
//================================================================ stop
@Override public void stop() {
_clock.stop();
}
}
Sunday, 4 November 2012
Review
The name of our project is entitled Decimal
Places.There is 3 main subtopics is allocated for each of us and a program is
required to be designed for each of the subtopic .Namely the following topic is
done by all of us where Lam Soon Hong designed for Understanding the decimal
places,Navilina done for Conversation between decimal number and the
fraction and Tan Yih Fen for Comparison between decimal number.
There is many loops and bounds that we had
to challenge during the progress of the project as for an example getting the
knowledge of using Java Applets in our program in the terms of execution of the
program in a proper form.For instance, the usage of JOptionPane in the
program.First of all,we took a lot of reference from the internet and we used the Introduction Java Programming book as a
reference to be done.Furthermore,we seeked some tutorials from the Youtube
videos mainly to see how the Java Applets is illustrated in programs without
error. Besides the problem of lack of
information about JOptionPane, we are also facing the problem of creating the
student class. Although we tried to search information online to solve the
problem, we still face the challenge to create the student class. We have
failed many times in our trials. However, in the end, we manage to success in
creating the student class with the help of my course mate, Chen Chie Phui. She
pointed out the mistakes we made in our
program. After we made some changes according to her advice, we manage to
success in creating the student class. Although we successfully compile the
program, but we still continue to modify the program of student class to become
more better than before.
In aspect of cooperation, we do achieve
an average cooperation level.
The project takes us about few weeks to
complete it. However, each part of the project takes different time to
accomplished by each of us.
Saturday, 3 November 2012
Introduction
We are required to design and implement a java based application for a topic in Mathematic (Topik 7 – 13) for year 2 student. For this application, we need to create a menu based program with the main menu similar to the following:
- Understanding The Concept of Decimal
- Conversion of Decimal and Fraction
- Comparison between Decimal Places
- Exit
We have chosen "Topic 7: Decimal" as the topic of our application created. It contains 3 subtopics:
- Understanding the concept of decimal
- Conversion of decimal to fraction
- Comparison of decimal
For game, it contains 10 questions for student to answer and timer is created to know that how long the student spent to answer all. After that, the student will be able to know his/her level.
Vision
To help a Year 2 student learn quickly and easily about a topic of Mathematics Year 2 from our java education software developed which is interesting, professional, best, absolute and perfect.
Mission
- To apply basic object-oriented programming concepts in solving easy problems.
- To let the users can be easy to use and to learn from our java application
- To create a simple, object-oriented and familiar java programming
Subscribe to:
Posts (Atom)
