Name: Japplet 2006-12-04 20:17
I haven't been programming very long...
I have done some Java code in the past, though i admit it wasn't very elaborate or anything... and today i kinda did some HTML things with it... nothing too special but i kinda liked it and i want to learn more...
All i did was make some graphic objects using simple code like drawOval and stuff...
import javax.swing.*;
import java.awt.*;
public class Draw extends JApplet
{
public void init()
{
getContentPane().setBackground(Color.white);
}
public void paint(Graphics g)
{
super.paint(g);
int x;
g.setColor(Color.green);
g.drawLine(0,0,299,299);
g.drawLine(0,299,299,0);
g.setColor(Color.blue);
g.drawOval(0,0,100,50);
for(x=0; x<300;x+=10)
{
g.drawLine(x,0,299,x);
g.drawLine(x,0,0,299-x);
}
}
}
so far thats all I got, the book my cousin let me borrow doesn't elaborate too much on HTML and only gives me a few more methods i can make with it and i wanted to know if anyone here knew of any good ones i could use and get practice with.
The few other ones i have used are things like void fillArc and things like that but again its not anything too special.
does anyone here have any suggestions on what else might be useful to make something more interesting?
I have done some Java code in the past, though i admit it wasn't very elaborate or anything... and today i kinda did some HTML things with it... nothing too special but i kinda liked it and i want to learn more...
All i did was make some graphic objects using simple code like drawOval and stuff...
import javax.swing.*;
import java.awt.*;
public class Draw extends JApplet
{
public void init()
{
getContentPane().setBackground(Color.white);
}
public void paint(Graphics g)
{
super.paint(g);
int x;
g.setColor(Color.green);
g.drawLine(0,0,299,299);
g.drawLine(0,299,299,0);
g.setColor(Color.blue);
g.drawOval(0,0,100,50);
for(x=0; x<300;x+=10)
{
g.drawLine(x,0,299,x);
g.drawLine(x,0,0,299-x);
}
}
}
so far thats all I got, the book my cousin let me borrow doesn't elaborate too much on HTML and only gives me a few more methods i can make with it and i wanted to know if anyone here knew of any good ones i could use and get practice with.
The few other ones i have used are things like void fillArc and things like that but again its not anything too special.
does anyone here have any suggestions on what else might be useful to make something more interesting?