davidchew
May 3rd, 2000, 06:40 AM
I had some problem to display a long number
with a g.drawstring command. Can somebody help ?
for example in the following codes :
Date earlierDate = new Date(71,7,1,7,10);
long earliersecs = earlierDate.getTime();
public void paint(Graphics g) {
g.drawString(earliersecs,10,50);
}
The compiler replies with an error because
earliersecs is a long. How do I solve this problem
to display a long in an applet ?
with a g.drawstring command. Can somebody help ?
for example in the following codes :
Date earlierDate = new Date(71,7,1,7,10);
long earliersecs = earlierDate.getTime();
public void paint(Graphics g) {
g.drawString(earliersecs,10,50);
}
The compiler replies with an error because
earliersecs is a long. How do I solve this problem
to display a long in an applet ?