I'm having an issue passing variables from init() and paint() in a Java Applet- what's the rules on those again? I'm trying to pass variables from a user input window to a graphics display thing in paint(), but I can't get them to pass, the values are lost from init() to paint(). Ideas?
Name:
Anonymous2007-10-09 21:31
I know it's fucking ridiculous, I know Java is a shit language- but I have to take it before I get into C++ and the like. I'm a poor boy from the land of PERL and PHP, this shit annoys me to no end. The code looks like this (uncommented):
public class tester extends JApplet
{
public double dx1;
String x1, x2, x3, y1, y2, y3;
triangle tri;
double area, perim, angleA, angleB, angleC;