Advertisement
Advertisement
| 05.08.2008 at 03:32AM PDT, ID: 23385537 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.08.2008 at 04:11AM PDT, ID: 21523722 |
| 05.08.2008 at 04:13AM PDT, ID: 21523730 |
| 05.08.2008 at 07:23AM PDT, ID: 21524971 |
| 05.08.2008 at 07:44AM PDT, ID: 21525171 |
| 05.08.2008 at 01:35PM PDT, ID: 21528228 |
| 05.09.2008 at 04:00AM PDT, ID: 21531621 |
| 05.09.2008 at 07:25AM PDT, ID: 21533129 |
| 05.13.2008 at 10:38AM PDT, ID: 21557373 |
| 05.13.2008 at 11:03AM PDT, ID: 21557595 |
| 05.13.2008 at 11:18AM PDT, ID: 21557738 |
| 05.13.2008 at 12:12PM PDT, ID: 21558290 |
| 05.13.2008 at 12:14PM PDT, ID: 21558323 |
| 05.13.2008 at 12:21PM PDT, ID: 21558397 |
| 05.13.2008 at 01:00PM PDT, ID: 21558742 |
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: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: |
import java.awt.Color;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class AniMain extends Frame implements Runnable {
private Circle circle1;
public AniMain() {
circle1 = new Circle(50, 60, 100);
addWindowListener(new WindowCloser());
new Thread(this).start();
}
public void paint(Graphics g) {
circle1.draw(g);
}
public static void main(String args[]) {
Frame frame = new AniMain();
frame.setBounds(100, 100, 400, 400);
frame.setBackground(Color.white);
frame.setResizable(false);
// register event
frame.setVisible(true);
}
// end the program when the user hits the Frame's close button
private class WindowCloser extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(1);
}
}
public void run() {
int i;
i = 0;
while (true) {
if (i > 300)
i = 0;
else
i++;
circle1.move(50 + i, 60 + i);
try {
Thread.sleep(50);
repaint();
} catch (Exception e) {
}
}
}
}
//=============================================================
/** AniMain.java - Java versione 1.6 - 05 05 2008 */
import java.awt.Color;
import java.awt.Graphics;
class Circle {
int x;
int y;
int radius;
public Circle(int x, int y, int radius) {
this.x = x;
this.y = y;
this.radius = radius;
}
void draw(Graphics graphics) {
graphics.setColor(Color.RED);
graphics.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
}
void delete(Graphics graphics) {
graphics.setColor(Color.white);
graphics.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
}
void move(int newx, int newy) {
x = newx;
y = newy;
}
}
|
| 05.13.2008 at 05:29PM PDT, ID: 21560375 |
| 05.15.2008 at 02:53PM PDT, ID: 21578284 |
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: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: |
import java.awt.*;
import java.awt.event.*;
class Circle {
int x;
int y;
int radius;
public Circle(int x, int y, int radius) {
this.x = x;
this.y = y;
this.radius = radius;
}
void draw(Graphics g) {
g.setColor(Color.RED);
g.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
}
void delete(Graphics g) {
g.setColor(Color.white);
g.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
}
void move(int newx, int newy) {
x = newx;
y = newy;
}
}
class WindowCloser extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(1);
}
}
public class AniMain extends Frame implements Runnable {
private Circle circle1;
public AniMain() {
circle1 = new Circle(50, 60, 100);
new Thread(this).start();
}
public void paint(Graphics g) {
circle1.draw(g);
}
public static void main(String args[]) {
Frame frame = new AniMain();
frame.setBounds(100, 100, 400, 400);
frame.setBackground(Color.white);
frame.setResizable(false);
// register event
frame.addWindowListener(new WindowCloser());
frame.setVisible(true);
}
public void run() {
int i;
i = 0;
while (true) {
if (i > 300)
i = 0;
else
i++;
circle1.move(50 + i, 60 + i);
try {
Thread.sleep(50);
repaint();
} catch (Exception e) {
}
}
}
}
|
| 05.16.2008 at 02:11AM PDT, ID: 21581098 |