package Baum;
import java.awt.*;
import java.awt.event.*;
public class Baum extends Frame
{
private static final long serialVersionUID = 3800165321162121122L;
public Baum()
{
setSize( 900, 700 );
addWindowListener( new WindowAdapter() {
@Override
public void windowClosing ( WindowEvent e ) { System.exit( 0 ); }
} );
}
@Override
public void paint( Graphics g )
{
//Hier kommt das Gezeichnete hin (mit Pixelangaben)
//Bsp.: g.drawLine (450, 50, 350, 150);
}
public static void main( String[] args )
{
new Baum().setVisible( true );
}
}
double ratio = breite/hoehe;
int amountStars = reihenIndex * ratio;
for (int j = 1; j <= high - i; j++)
for (int j = 1; j <= amountStars; j++)