The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

What does this code do?

Posted by James on January 13, 2001 at 1:03 PM

import java.applet.*;
import java.awt.*;

public class PieCharts extends Applet {

private static int maxHist = 10;

public void paint(Graphics g) {
int[] intHist = new int[maxHist];
int[] degreeHist = new int[maxHist];

thisClass class1 = new thisClass(430);
class1.histogram(intHist);

ChartDrawer pie = new ChartDrawer();
pie.toDegrees(intHist, degreeHist);
pie.draw(g, degreeHist);
}
}



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us