
-----------------------------------
HeavenAgain
Sun Jun 03, 2007 12:08 pm

applet -&gt; none applet
-----------------------------------
ummm, ok, can anyone "translate" the below languange into dr.java? (not in applet form?) so i can run this in my dr.java? 
please and thank you  :mrgreen: 

import java.awt.*;
import java.applet.*;

public class SierpinskiTriangle extends Applet {
    private Graphics g;
    private int dMin=4;    // limit to recursion in pixels

    public void paint(Graphics g) {
        this.g = g;
        int d  = 1024;    // basis (width of the triangle)
        int x0 =   50;    // distance from the left
        int y0 =   50;    // distance from the top
        int h  = (int)(d*Math.sqrt(3)/2);    // height
        // so: suitable for an equilateral triangle
        int xA=x0,      yA=y0+h;    // (bottom-left)
        int xB=x0+d,    yB=y0+h;    // (bottom-right)
        int xC=x0+d/2,  yC=y0;    // equilateral triangle (top-center)
        int

-----------------------------------
Ultrahex
Sun Jun 03, 2007 6:20 pm

Re: applet -&gt; none applet
-----------------------------------
#1, This is an applet .... you should be able to figure out how to run an applet....
#2, why should we do work for you?
#3, why cant you convert to something else yourself?

#4, here it is, but don't expect us to do it again


import java.awt.*;
import javax.swing.*;

public class SierpinskiTriangle {

    public static void main (String
