FREE ESSAY ON JAVA PROJECT |
College Term Papers - Instant Download(sponsored links) Java Technology: EclipseA step-by-step tutorial on how to install and use the Eclipse platform to create basic Java applications. -- 2,122 words; MLA Java Provides an overview of the Java Network computer technology. -- 1,772 words; MLA Java Applet and Containers A discussion of the history of Java and a look at its applications and applets. -- 1,458 words; MLA Java vs. JavaScript A comparison of the different features of Java as opposed to JavaScript. -- 901 words; MLA Java A discussion on Java programming language. -- 920 words; MLA |
| Click here for more essays on JAVA PROJECT |
JAVA PROJECT
// Jennifer Farley
// Java Term Project
import java.awt.*;
import java.applet.*;
public class scroll extends java.applet.Applet implements Runnable {
boolean first = true;
int fontsize = 72;
String title1=Welcome to JAVA;
Thread kicker = null;
Image bufferimg;
Graphics bufferG;
public void init() {
setBackground(Color.blue);
this.title1 = getParameter(title1);
bufferimg = createImage(size().width, size().height);
bufferG = bufferimg.getGraphics();
}
public void start() {
if (kicker == null) {
kicker = new Thread(this);
kicker.start();
}
}
public void stop() {
if (kicker != null) {
kicker.stop();
kicker = null;
}
}
public void run() {
while (true) {
repaint();
try { Thread.sleep(50); }
catch (InterruptedException e) {}
}
}
public void update(Graphics g) {
if(first==true) {
bufferG.setColor(Color.blue);
bufferG.fillRect(0,0,800,101);
Psych();
Font font = new Font(TimesRoman,Font.BOLD,fontsize);
bufferG.setFont(font);
bufferG.setColor(Color.magenta);
bufferG.drawString(title1,15,70);
bufferG.setColor(Color.green);
bufferG.drawString(title1,16,71);
bufferG.setColor(Color.blue);
bufferG.drawString(title1,17,72);
first=false;
}
bufferG.copyArea(0,100,800,1,0,-100);
bufferG.copyArea(0,0,800,100,0,1);
g.drawImage(bufferimg,0,0,this);
}
public void Psych() {
Color c;
float h=0;
for (int x=0; x*=8;x++){
h=0;
for (int y=48;y*=0;y--){
c=Color.getHSBColor(h,(float)1.0,(float)1.0);
bufferG.setColor(c);
h = h + (float)0.02;
bufferG.drawRect((x*100)+y,y,(49-y)*2, (49-y)*2);
}
}
}
}
Bibliography
// Jennifer Farley
// Java Term Project
// HTML document
|
|
Use the Search box at the top to find Term Papers for Sale by keywords
or browse Free Essays page by page (sorted alphabetically by Essay Title): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
| For college-level Term Papers, Essays, Research Papers and Book Reports, please go to the Term Papers for Sale Website |
|
This Free Essays Web Site, is Copyright © 2008, Essay Express. All rights reserved. |