package com.company;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class gongjain_zuobiaoxi {
private JTextField textField5;
private JTextField textField6;
private JTextField textField7;
private JTextField textField8;
private JTextField textField9;
private JTextField textField1;
private JTextField textField10;
private JTextField textField2;
private JTextField textField3;
private JTextField textField4;
private JButton 测量Button;
private JButton 保存Button;
private JPanel jpanel1;
private JPanel jpanel2;
private JPanel jpanel3;
private JPanel jpanel4;
private JPanel jpanel5;
private JPanel jpanel6;
private JTextField textField11;
private JPanel jpanel7;
private JPanel jpanel8;
private JTextField textField12;
private JTextField textField13;
private JTextField textField14;
private JTextField textField15;
private JTextField textField16;
private JTextField textField17;
private JTextField textField18;
private JTextField textField19;
private JTextField textField20;
private JTextField textField21;
private JLabel lab1;
private JLabel lab2;
private JLabel lab3;
private JLabel lab4;
private JLabel lab5;
private JLabel lab6;
private JLabel lab7;
private JLabel lab8;
private JLabel lab9;
private JLabel lab10;
private JLabel lab11;
private JLabel lab112;
private JLabel lab113;
private JLabel lab14;
private JLabel lab15;
private JLabel lab16;
private JLabel lab17;
private JLabel lab18;
private JLabel lab19;
private JLabel lab20;
private JLabel lab21;
public gongjain_zuobiaoxi() {
保存Button.addActionListener(new ActionListener() {
/**
* Invoked when an action occurs.
*
* @param e the event to be processed
*/
@Override
public void actionPerformed(ActionEvent e) {
}
});
测量Button.addActionListener(new ActionListener() {
/**
* Invoked when an action occurs.
*
* @param e the event to be processed
*/
@Override
public void actionPerformed(ActionEvent e) {
get_xd();
huancun();
}
});
}
//g54
public void set_g54(int gg, String ss) {
switch (gg) {
case 5221:
textField1.setText(ss);
break;
case 5222:
textField2.setText(ss);
break;
case 5223:
textField3.setText(ss);
break;
case 5224:
textField4.setText(ss);
break;
default:
break;
}
}
public float get_g54(int gg) {
float dd = 0;
switch (gg) {
case 5221:
dd = Float.parseFloat(textField1.getText());
break;
case 5222:
dd = Float.parseFloat(textField2.getText());
break;
case 5223:
dd = Float.parseFloat(textField3.getText());
break;
case 5224:
dd = Float.parseFloat(textField4.getText());
break;
default:
break;
}
return dd;
}
//g55
public void set_g55(int gg, String ss) {
switch (gg) {
case 5241:
textField5.setText(ss);
break;
case 5242:
textField6.setText(ss);
break;
case 5243:
textField7.setText(ss);
break;
case 5244:
textField8.setText(ss);
break;
default:
break;
}
}
public float get_g55(int gg) {
float dd = 0;
switch (gg) {
case 5241:
dd = Float.parseFloat(textField5.getText());
break;
case 5242:
dd = Float.parseFloat(textField6.getText());
break;
case 5243:
dd = Float.parseFloat(textField7.getText());
break;
case 5244:
dd = Float.parseFloat(textField8.getText());
break;
default:
break;
}
return dd;
}
//g56
public void set_g56(int gg, String ss) {
switch (gg) {
case 5261:
textField9.setText(ss);
break;
case 5262:
textField10.setText(ss);
break;
case 5263:
textField11.setText(ss);
break;
case 5264:
textField12.setText(ss);
break;
default:
break;
}
}
public double get_g56(int gg) {
double dd = 0.0;
switch (gg) {
case 5261:
dd = Double.parseDouble(textField9.getText());
break;
case 5262:
dd = Double.parseDouble(textField10.getText());
break;
case 5263:
dd = Double.parseDouble(textField11.getText());
break;
case 5264:
dd = Double.parseDouble(textField12.getText());
break;
default:
break;
}
return dd;
}
//g57
public void set_g57(int gg, String ss) {
switch (gg) {
case 5281:
textField13.setText(ss);
break;
case 5282:
textField14.setText(ss);
break;
case 5283:
textField15.setText(ss);
break;
case 5284:
textField16.setText(ss);
break;
default:
break;
}
}
public double get_g57(int gg) {
double dd = 0.0;
switch (gg) {
case 5281:
dd = Double.parseDouble(textField13.getText());
break;
case 5282:
dd = Double.parseDouble(textField14.getText());
break;
case 5283:
dd = Double.parseDouble(textField15.getText());
break;
case 5284:
dd = Double.parseDouble(textField16.getText());
break;
default:
break;
}
return dd;
}
public void get_xd() {
int gg = Integer.parseInt(textField21.getText());
switch (gg) {
case 54:
textField1.setText(new zuobiaoxi_bao().getJlab_x());
textField2.setText(new zuobiaoxi_bao().getJlab_y());
textField3.setText(new zuobiaoxi_bao().getJlab_z());
textField4.setText(new zuobiaoxi_bao().getJlab_a());
break;
case 55:
textField5.setText(new zuobiaoxi_bao().getJlab_x());
textField6.setText(new zuobiaoxi_bao().getJlab_y());
textField7.setText(new zuobiaoxi_bao().getJlab_z());
textField8.setText(new zuobiaoxi_bao().getJlab_a());
break;
case 56:
textField9.setText(new zuobiaoxi_bao().getJlab_x());
textField10.setText(new zuobiaoxi_bao().getJlab_y());
textField11.setText(new zuobiaoxi_bao().getJlab_z());
textField12.setText(new zuobiaoxi_bao().getJlab_a());
break;
case 57:
textField13.setText(new zuobiaoxi_bao
星海露水
- 粉丝: 143
- 资源: 5
最新资源
- (源码)基于Arduino和Firebase的智能家庭管理系统NodeSmartHome.zip
- (源码)基于C++的East Zone DSTADSO Robotics Challenge 2019机器人控制系统.zip
- (源码)基于Arduino平台的焊接站控制系统.zip
- (源码)基于ESPboy系统的TZXDuino WiFi项目.zip
- (源码)基于Java的剧场账单管理系统.zip
- (源码)基于Java Swing的船只资料管理系统.zip
- (源码)基于Python框架的模拟购物系统.zip
- (源码)基于C++的图书管理系统.zip
- (源码)基于Arduino的简易温度显示系统.zip
- (源码)基于Arduino的智能电动轮椅系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈