Вход на сайт
Nuzna pomosch po JAVA
175
NEW 19.01.04 11:23
Rebjata ochenn nuzna pomosch. Do seredinq fevralja nuzno napisatt 6 programm na JAVA. Ja nigde nikogda JAVA ne zanimalass i v perspektive zanimatsja etim ne budu, a sdatt rabotq tem ne menee nado. A posemu u menja delovoe predlozenije. Mozet kto-nibudd pomoch? Mozet komu nibudd praktika nuzna v podgotovke k ekzamenu, ili komu to eto prosto macht Spass? Nu ili v ljubom sluchjae mozno i ob oplate dogovoritsja. Budu ochenn priznatellna, esli kto nibudd otkliknetsja.

Rebjata ochenn nuzna pomosch. Do seredinq fevralja nuzno napisatt 6 programm na JAVA. Ja nigde nikogda JAVA ne zanimalass i v perspektive zanimatsja etim ne budu, a sdatt rabotq tem ne menee nado. A posemu u menja delovoe predlozenije. Mozet kto-nibudd pomoch? Mozet komu nibudd praktika nuzna v podgotovke k ekzamenu, ili komu to eto prosto macht Spass? Nu ili v ljubom sluchjae mozno i ob oplate dogovoritsja. Budu ochenn priznatellna, esli kto nibudd otkliknetsja.
NEW 19.01.04 17:31
в ответ Tomasson 19.01.04 14:52
Vseh schesti zadanij poka netu. Kazduju nedelju poluchjaju po 2. Vsego ostaloss 6 nedell. To bisch program poluchjaetsja bollsche chem 6 
Vot eto to chto nado sdelatt na etoj nedele
Number 1
Write an applet that lets a user specify a circle by typing the radius in a text field and then clicking on the center.
--------------------------------------------------------------------------------
Number 2
Write an applet that lets the user specify a circle with two mouse presses, the first one on the center and the second one on a point on the periphery.
Hint: In the mouse press handler, you must keep track of whether you already received the center point in a previous mouse press.
Esli kto chem smozet pomoch ja budu samim schjastlivim chelovekom na svete, esli net, vsjo ravno spasibo za ponimanije i gotovnostt pomoch. Esli chto pischite navernoje na e-mail tuhlan@font.ru

Vot eto to chto nado sdelatt na etoj nedele
Number 1
Write an applet that lets a user specify a circle by typing the radius in a text field and then clicking on the center.
--------------------------------------------------------------------------------
Number 2
Write an applet that lets the user specify a circle with two mouse presses, the first one on the center and the second one on a point on the periphery.
Hint: In the mouse press handler, you must keep track of whether you already received the center point in a previous mouse press.
Esli kto chem smozet pomoch ja budu samim schjastlivim chelovekom na svete, esli net, vsjo ravno spasibo za ponimanije i gotovnostt pomoch. Esli chto pischite navernoje na e-mail tuhlan@font.ru
NEW 26.01.04 00:37
в ответ Rizaja Bestija 19.01.04 17:31
Писать тебе готовые решения никто не будет, т.к. это занимает время и не так уж и интересно.
Вот почти твой пример: http://www.math.ucla.edu/~tao/java/Mobius.html
Здесь исходники: http://www.math.ucla.edu/~tao/java/
Разбирайся.
Вот почти твой пример: http://www.math.ucla.edu/~tao/java/Mobius.html
Здесь исходники: http://www.math.ucla.edu/~tao/java/
Разбирайся.
NEW 26.01.04 16:33
в ответ Rizaja Bestija 19.01.04 11:23
Держи первую
public class HelloJava
{
public static void main(String args[])
{
System.out.println("Hello, Java!",0);
}
}
Снаряды носите бережно - пусть вас видят, а не помнят!
http://copi.ru/19407/
public class HelloJava
{
public static void main(String args[])
{
System.out.println("Hello, Java!",0);
}
}
Снаряды носите бережно - пусть вас видят, а не помнят!
http://copi.ru/19407/
Снаряды носите бережно, пусть вас видят, а не помнят!!!http://uzbek01.blogspot.com
NEW 27.01.04 18:19
в ответ Rizaja Bestija 19.01.04 11:23
Number 1
package aufgabe1a;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Circle extends Applet {
private TextField textField = new TextField("0",0);
private Label label = new Label("radius:",0);
public void init() {
this.add(label,0);
this.add(textField,0);
this.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
this_mouseClicked(e,0);
}
},0);
}
void this_mouseClicked(MouseEvent e) {
int radius = Integer.parseInt(this.textField.getText())*2;
this.getGraphics().drawOval(e.getX()-radius/2, e.getY()-radius/2, radius, radius,0);
}
}
Number 2
package aufgabe2a;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Circle extends Applet {
private int click = 0;
private int x = 0;
private int y = 0;
public void init() {
this.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
this_mouseClicked(e,0);
}
},0);
}
void this_mouseClicked(MouseEvent e) {
if (click == 0){
x = e.getX(,0);
y = e.getY(,0);
click++;
}
else {
Long lRadius = new Long(java.lang.Math.round(java.lang.Math.sqrt(((e.getY()-y)*(e.getY()-y)) + ((e.getX()-x)*(e.getX()-x)))),0);
int radius = lRadius.intValue()*2;
this.getGraphics().drawOval(x - radius/2, y - radius/2, radius, radius,0);
click--;
}
}
}

package aufgabe1a;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Circle extends Applet {
private TextField textField = new TextField("0",0);
private Label label = new Label("radius:",0);
public void init() {
this.add(label,0);
this.add(textField,0);
this.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
this_mouseClicked(e,0);
}
},0);
}
void this_mouseClicked(MouseEvent e) {
int radius = Integer.parseInt(this.textField.getText())*2;
this.getGraphics().drawOval(e.getX()-radius/2, e.getY()-radius/2, radius, radius,0);
}
}
Number 2
package aufgabe2a;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Circle extends Applet {
private int click = 0;
private int x = 0;
private int y = 0;
public void init() {
this.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
this_mouseClicked(e,0);
}
},0);
}
void this_mouseClicked(MouseEvent e) {
if (click == 0){
x = e.getX(,0);
y = e.getY(,0);
click++;
}
else {
Long lRadius = new Long(java.lang.Math.round(java.lang.Math.sqrt(((e.getY()-y)*(e.getY()-y)) + ((e.getX()-x)*(e.getX()-x)))),0);
int radius = lRadius.intValue()*2;
this.getGraphics().drawOval(x - radius/2, y - radius/2, radius, radius,0);
click--;
}
}
}



NEW 30.01.04 10:57
в ответ Herzog 27.01.04 18:19
Вот это я называю человеку скучно. Вообще молодец, помог девушке, доброе дело сделал!
катацумури
соро соро ноборэ
фудзи но яма
http://www.ulitka.de/exoops/
катацумури
соро соро ноборэ
фудзи но яма
http://www.ulitka.de/exoops/
Блог о моих впечатления от Индии: http://blogs.mail.ru/mail/lofing/