Alguem Pode me ajudar com este algoritimo ,Não estou conseguindo Resolver e não entendi muito Bem…
import java.awt.Graphics;
import javax.swing.JPanel;
public class Drawpanel extends JPanel
{
public void paintComponent( Graphics g )
{
super.paintComponent( g );
int pass = 15;
int width = getWidth();
int height = getHeight();
for( int y = 0; y <= 50; y++ )
g.drawLine( y , y * pass, width, height );
}
}