hi please someone help me!!!
i am writing a program for connect the dots game.....
i am stuck on the mouse dragging. if you click on a dot and drag it to the destination you want it to be. i dont know how to do this. i am not using Point class.
also how do I double buffer?????
please...
hi thanx but i kind of changed my program to panel:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Calculator extends JFrame implements ActionListener
{
public static final int WIDTH = 400;
public static final int HEIGHT = 400;
private JTextField theText...
I'm trying to write a calculator java applet, so far i've declared the buttons and terxtfield and i've intialized it also, what I don't know how to do is add the numbers, subtract, multiply, divide, square root it, add to memory and so forth when the user presses the buttons...
Can any1 help...
hi... i need help in this :
A program that produces a Calculator with GUI.
It should be similar in functionality to the standard calculator( not the scientific ) available under Microsoft Windows's accessories.
Do not include "edit", "view", "help"...
k thank-you but the only problem is that the Employee data has to be in arrays...ex:
Employee e = new Employee[20];
and each element has to be type Employee
and then the methods : add, delte,modify.....
does this make sense??
thanks again :)
ok sorry let me give you the whole discription of the program:
The program is about a university that maintains data about its employees in various department. A department can have at most 20 employees.
For each employee following data are to be stored:
1. Social Security number ( a unique...
hi thanx for helping but one problem in this program i am not using hashtables or importing anything.....you are right i dont need 4-dimensional arrays i changed it to:
Employee[] e = new Employee[20];
but i do not know how i can delete.....i know that i can replace each element with the next...
hi i need help!!!!
i am writing a program that has a class Employee that is derived from a class Person.....i have another class EmployeeData and in this class:
1. has one array of max 20 elements.
Each element is an object of type Employee. This class
should have methods for adding an...
hi i need help in this program that i am working on:
Write a Temperature class that has two data members one is temperature value ( double ) and the other is a type (char ) indicating 'F' or 'f' for the Fahrenheit scale or 'C' or 'c' for the Celsius scale.
Your class should have only the...
i am writing a program and i need help with it please. the program is:
write a simple calculator. each valid command for this calculator should consist of an operation followed by an operand. this is an accumulator-based calculator, meaning, each arithmetic operator only takes a single number...
i am writing a program and i need help with it.
the program is :
write a program that will prompt the user for an integer. the program should then print the binary conversion of the integer on the screen. It should then enter a loop by asking the user if he wants to continue or not. The...
I need help with the program I am doing.
I am writing a program that takes a one-line sentence as input and then outputs the following response: if the sentence ends with a question mark and the input contains even number of characters, then output the word "yes". If the sentence ends...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.