.


:




:

































 

 

 

 


.




import java.awt.*;

import java.awt.event.*;

public class oknop6 extends Frame implements ActionListener{

private TextField tf1;

private TextField tf;

private TextField tf2;

private TextArea ta;

private TextArea ta1;

private TextArea ta2;

private TextArea ta3;

 

oknop6(){

super (" ");

setLayout(null);

Button bl = new Button("");

bl.setBounds(10,210,160,30);

add(bl);

 

Label ll = new Label(" ", Label.CENTER);

ll.setBounds(10,20,160,30);

tf = new TextField(" ", 50);

tf.setBounds(10,50,160,30);

 

Label ll1 = new Label(" , .", Label.CENTER);

ll1.setBounds(10,80,160,30);

tf1 = new TextField(" ", 50);

tf1.setBounds(10,110,160,30);

 

Label ll2 = new Label(" , .", Label.CENTER);

ll2.setBounds(10,140,160,30);

tf2 = new TextField(" ", 50);

tf2.setBounds(10,170,160,30);

 

Label ch = new Label(" ");

ch.setBounds(10, 250, 160, 30);

ta = new TextArea();

ta.setBounds(10,280,160,50);

 

Label ch1 = new Label(" ");

ch1.setBounds(10, 330, 160, 30);

ta1 = new TextArea();

ta1.setBounds(10,360,160,50);

 

Label ch2 = new Label(" ");

ch2.setBounds(10, 410, 160, 30);

ta2 = new TextArea();

ta2.setBounds(10,440,160,50);

 

Label ch3 = new Label(" ");

ch3.setBounds(10, 490, 190, 30);

ta3 = new TextArea();

ta3.setBounds(10,520,160,50);

 

add(ll);

add(ll1);

add(ll2);

add(ch);

add(ch1);

add(ch2);

add(ch3);

add(ta);

add(ta1);

add(ta2);

add(ta3);

add(tf);

add(tf2);

add(tf1);

 

tf.addActionListener(this);

tf1.addActionListener(this);

tf2.addActionListener(this);

bl.addActionListener(this);

 

setSize(200,600);

setVisible(true);

}

 

public void actionPerformed(ActionEvent ae){

 

String x=tf.getText();

double d = Double.parseDouble(x);

 

String x1=tf1.getText();

double d1 = Double.parseDouble(x1);

 

String x2=tf2.getText();

double d2 = Double.parseDouble(x2);

 

zatyx func = new zatyx();

 

String z2 = func.f1(d,d1,d2);

ta1.append(z2);

 

String z3 = func.f3();

ta2.append(z3);

 

String z4 = func.f4();

ta.append(z4);

 

String z5 = func.f55();

ta3.append(z5);

}

}

 

.

.

.

 

.

 

5 - 3,8 .

 

15 - 11,6.

 

1,2 - 2,1 .

 

"" - 2,4 .

 

 

.

 

 

 


 

Java . Java , , , , World Wide Web.

, , Java . .

, . , .

Java, , Internet.

 

 

C .

1. ;

2. ;

3. Java .

 

 





:


: 2017-02-28; !; : 417 |


:

:

, - , ; , - .
==> ...

1499 - | 1512 -


© 2015-2024 lektsii.org - -

: 0.019 .