Date: Fri, 17 Mar 2000 20:41:21 +1100 From: Danny <dannyh@idx.com.au> To: freebsd-questions@freebsd.org Subject: Problem with this java program Message-ID: <00031720413701.00327@freebsd.freebsd.org>
next in thread | raw e-mail | index | archive | help
---------- Forwarded Message ----------
Subject: Problem with this java program
Date: Fri, 17 Mar 2000 09:25:46 +1100
From: Danny <dannyh@idx.com.au>
--
Hello I am having this problem with the java program that I created on FreeBSD
I used the following pkgs
import java.applet.Applet;
import java.awt.*;
import java.io.*;
I Defined the Button to calculate
Button calButton;
I can't get this code to calcuate as specfied in my pesudocode
Meters Read <= 5,000 $0
Meters Read > 5,000 and <= 7,500 $125
Meters Read > 7,500
My Code is as follows : -
if(evt.target == calButton) {
i = EmployeeList.getSelectedIndex ();
EmployeeList.delItem (i);
for (; i<NNumbers-1; i+=1) data[i] = data[i+1];
NNumbers -=1;
//nameField.setText ("");
//phoneField.setText ("");
//wageField.setText ("");
//readingField.setText("");
//numberField.setText("");
//dateField.setText("");
How can I modify this code to do the above alogrithm?
Looking forward to your feedback.
dannyh
dannyh@idx.com.au
--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00031720413701.00327>
