Song Details: Busta Rhymes - Turn It Up
Artist Details
Songs used in Turn It Up
|
Songs containing a Sample of Turn It Up
|
Multimedia Embed (Edit)
import java.applet.*;
import java.awt.*;
public class Scribble extends Applet implements Runnable
{
String name;
private Graphics m_Graphics;
private int index = 0;
private int m_nNextPoint = 0;
private int m_nPrevPoint = -1;
final int MAXPOINTS = 500;
private Point m_ptArr[] = new Point[MAXPOINTS];
public Scribble()
{
}
public String getAppletInfo()
{
return "Name: Scribble
";
}
public void init()
{
setBackground(Color.gray);
name = getParameter("firstname");
if (name == null)
name = "nobody";
for (int i = 0; i < MAXPOINTS; i++)
m_ptArr[i] = null;
}
public void paint(Graphics g)
{
g.drawString(name + "'s scribble applet",10,15);
}
public void run()
{
repaint();
m_Graphics = getGraphics();
}
public boolean mouseDown(Event evt, int x, int y)
{
// repaint( );
index = 0;
m_nNextPoint = 0;
if ( m_ptArr[0] == null )
m_ptArr[0] = new Point(x,y);
else
{
m_ptArr[0].x = x;
m_ptArr[0].y = y;
}
index++;
return true;
}
public boolean mouseUp(Event evt, int x, int y)
{
return true;
}
public boolean mouseDrag(Event evt, int x, int y)
{
if ( index < MAXPOINTS )
{
if ( m_ptArr[index] == null )
m_ptArr[index] = new Point(x,y);
else
{
m_ptArr[index].x = x;
m_ptArr[index].y = y;
}
index++;
if ( index > 1 )
getGraphics( ).drawLine(m_ptArr[index-2].x,
m_ptArr[index-2].y, x, y);
}
return true;
}
public boolean mouseMove(Event evt, int x, int y)
{
return true;
}
}
Shoutbox
Page functions