| | |
| | | import com.LimitedDocument; |
| | | |
| | | import java.awt.BorderLayout; |
| | | import java.awt.CardLayout; |
| | | import java.awt.FlowLayout; |
| | | |
| | | public class zdhj_page_param extends JPanel { |
| | |
| | | * Create the panel. |
| | | */ |
| | | public zdhj_page_param() { |
| | | JPanel panel_48 = new JPanel(); |
| | | String zdhj_title = "模块参数"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | | zdhj_title = "Module Param Setup"; |
| | | } |
| | | setLayout(new BorderLayout(0, 0)); |
| | | add(panel_48, BorderLayout.NORTH); |
| | | panel_48.setLayout(new GridLayout(7, 1, 0, 0)); |
| | | //setLayout(new BorderLayout(0, 0)); |
| | | setLayout(new GridLayout(1, 2, 0, 0)); |
| | | |
| | | |
| | | //左侧容器 |
| | | JPanel panel_48 = new JPanel(); |
| | | add(panel_48); |
| | | panel_48.setLayout(new GridLayout(7, 2, 0, 0)); |
| | | //模块参数设置 |
| | | panel_48.setBorder(new TitledBorder(null, "\u6a21\u5757\u53c2\u6570\u8bbe\u7f6e", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | |
| | | JPanel panel_49 = new JPanel(); |
| | | zdhj_title = "模块地址 / 电流量程(A) / 内阻周期(H) / 内阻类型 / 内阻采集阀值(A) / 内阻采集A模式 / 内阻采集A系数 / 内阻采集B系数"; |
| | |
| | | zdhj_title = "Module Addr / Curr Range(A) / ResTestTimeInt(H) / ResTestType / Ripple Wave Level(A) / Discharge Mode / Discharge Param / Ripple Wave Param"; |
| | | } |
| | | panel_48.add(panel_49); |
| | | panel_49.setLayout(new GridLayout(0, 8, 2, 0)); |
| | | panel_49.setLayout(new GridLayout(0, 4, 2, 0)); |
| | | |
| | | panel = new JPanel(); |
| | | //模块地址 |
| | | panel.setBorder(new TitledBorder(null, "\u6A21\u5757\u5730\u5740", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel); |
| | | panel.setLayout(new BorderLayout(0, 0)); |
| | |
| | | tf_zdhj_devaddr.setColumns(10); |
| | | |
| | | panel_1 = new JPanel(); |
| | | //电流量程 |
| | | panel_1.setBorder(new TitledBorder(null, "\u7535\u6D41\u91CF\u7A0B(A)", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_1); |
| | | panel_1.setLayout(new BorderLayout(0, 0)); |
| | |
| | | tf_zdhj_curr_range.setDocument(new LimitedDocument(4, "0123456789")); |
| | | tf_zdhj_curr_range.setColumns(10); |
| | | |
| | | JPanel panel_97 = new JPanel(); |
| | | panel_48.add(panel_97); |
| | | panel_97.setLayout(new GridLayout(0, 4, 2, 0)); |
| | | |
| | | panel_2 = new JPanel(); |
| | | //内阻周期 |
| | | panel_2.setBorder(new TitledBorder(null, "\u5185\u963B\u5468\u671F(H)", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_2); |
| | | panel_97.add(panel_2); |
| | | panel_2.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_autores_interval = new JTextField(); |
| | |
| | | tf_zdhj_autores_interval.setColumns(10); |
| | | |
| | | panel_3 = new JPanel(); |
| | | //内阻方法 |
| | | panel_3.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u5185\u963B\u65B9\u6CD5", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_49.add(panel_3); |
| | | panel_97.add(panel_3); |
| | | panel_3.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | cb_zdhj_res_testtype = new JComboBox<String>(); |
| | |
| | | cb_zdhj_res_testtype.setSelectedIndex(0); |
| | | |
| | | panel_4 = new JPanel(); |
| | | //内阻阈值 |
| | | panel_4.setBorder(new TitledBorder(null, "\u5185\u963B\u9608\u503C(A)", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_4); |
| | | panel_97.add(panel_4); |
| | | panel_4.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_wenbo_curr_lev = new JTextField(); |
| | |
| | | } |
| | | |
| | | panel_5 = new JPanel(); |
| | | //内阻模式 |
| | | panel_5.setBorder(new TitledBorder(null, "\u5185\u963B\u6A21\u5F0F", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_5); |
| | | panel_97.add(panel_5); |
| | | panel_5.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | cb_zdhj_res_dis_mode = new JComboBox<String>(); |
| | |
| | | zdhj_title_str = new String[]{"Single Discharge", "BroadCast Discharge"}; |
| | | } |
| | | |
| | | JPanel panel_98 = new JPanel(); |
| | | panel_48.add(panel_98); |
| | | panel_98.setLayout(new GridLayout(0, 4, 2, 0)); |
| | | |
| | | panel_6 = new JPanel(); |
| | | //模式A系数 |
| | | panel_6.setBorder(new TitledBorder(null, "\u6A21\u5F0FA\u7CFB\u6570", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_6); |
| | | panel_98.add(panel_6); |
| | | panel_6.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_res_dis_slope = new JTextField(); |
| | |
| | | tf_zdhj_res_dis_slope.setColumns(10); |
| | | |
| | | panel_7 = new JPanel(); |
| | | //模式B系数 |
| | | panel_7.setBorder(new TitledBorder(null, "\u6A21\u5F0FB\u7CFB\u6570", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_49.add(panel_7); |
| | | panel_98.add(panel_7); |
| | | panel_7.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_res_wenbo_slope = new JTextField(); |
| | |
| | | zdhj_title = "5Channels Each Channel Mon Count(1/2/3/4/5) / Stander Batt Cap(AH) / Float Charge Vol Lev(A) / Mon Numbered mode"; |
| | | } |
| | | panel_48.add(panel_51); |
| | | panel_51.setLayout(new GridLayout(0, 9, 2, 0)); |
| | | panel_51.setLayout(new GridLayout(0, 5, 2, 0)); |
| | | |
| | | panel_8 = new JPanel(); |
| | | panel_8.setBorder(new TitledBorder(null, "#1\u5355\u4F53\u6570", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | |
| | | tf_zdhj_ch5_cnt.setColumns(10); |
| | | |
| | | panel_13 = new JPanel(); |
| | | //标称容量 |
| | | panel_13.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u6807\u79F0\u5BB9\u91CF(AH)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_51.add(panel_13); |
| | | //panel_51.add(panel_13); |
| | | panel_49.add(panel_13); |
| | | panel_13.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_mon_stdcap = new JTextField(); |
| | |
| | | tf_zdhj_mon_stdcap.setColumns(10); |
| | | |
| | | panel_14 = new JPanel(); |
| | | //浮充电流(A) |
| | | panel_14.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u6D6E\u5145\u7535\u6D41(A)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_51.add(panel_14); |
| | | //panel_51.add(panel_14); |
| | | panel_49.add(panel_14); |
| | | panel_14.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_batt_floatcurr_lev = new JTextField(); |
| | |
| | | tf_zdhj_batt_floatcurr_lev.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_batt_floatcurr_lev.setDocument(new LimitedDocument(4, "0123456789.")); |
| | | tf_zdhj_batt_floatcurr_lev.setColumns(10); |
| | | |
| | | |
| | | zdhj_title_str = new String[]{"调试模式", "正常模式"}; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | | zdhj_title_str = new String[]{"Debug Mode", "Normal Mode"}; |
| | | } |
| | | |
| | | panel_15 = new JPanel(); |
| | | //编号模式 |
| | | panel_15.setBorder(new TitledBorder(null, "\u7F16\u53F7\u6A21\u5F0F", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
| | | panel_51.add(panel_15); |
| | | panel_98.add(panel_15); |
| | | panel_15.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | cb_monnum_setmode = new JComboBox<String>(); |
| | |
| | | cb_monnum_setmode.setSelectedIndex(0); |
| | | |
| | | panel_16 = new JPanel(); |
| | | //均衡电压(mV) |
| | | panel_16.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u5747\u8861\u7535\u538B(mV)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_51.add(panel_16); |
| | | panel_98.add(panel_16); |
| | | panel_16.setLayout(new BorderLayout(0, 0)); |
| | | |
| | | tf_zdhj_devid = new JTextField(); |
| | |
| | | } |
| | | |
| | | JPanel panel_80 = new JPanel(); |
| | | panel_80.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u7EBF\u7F06\u8865\u507F(D1,D2,D3,D4 / S1,S2,S3,S4)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_80.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u7EBF\u7F06\u8865\u507F(D1,D2,D3,D4)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_80); |
| | | panel_80.setLayout(new GridLayout(0, 8, 2, 0)); |
| | | panel_80.setLayout(new GridLayout(0, 4, 2, 0)); |
| | | |
| | | tf_respm_d1 = new JTextField(); |
| | | tf_respm_d1.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | |
| | | panel_80.add(tf_respm_d4); |
| | | tf_respm_d4.setColumns(10); |
| | | |
| | | JPanel panel_99 = new JPanel(); |
| | | panel_99.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u7EBF\u7F06\u8865\u507F(S1,S2,S3,S4)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_99); |
| | | panel_99.setLayout(new GridLayout(0, 4, 2, 0)); |
| | | |
| | | |
| | | tf_respm_s1 = new JTextField(); |
| | | tf_respm_s1.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_respm_s1.setDocument(new LimitedDocument(6, "0123456789.")); |
| | | panel_80.add(tf_respm_s1); |
| | | panel_99.add(tf_respm_s1); |
| | | tf_respm_s1.setColumns(10); |
| | | |
| | | tf_respm_s2 = new JTextField(); |
| | | tf_respm_s2.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_respm_s2.setDocument(new LimitedDocument(6, "0123456789.")); |
| | | panel_80.add(tf_respm_s2); |
| | | panel_99.add(tf_respm_s2); |
| | | tf_respm_s2.setColumns(10); |
| | | |
| | | tf_respm_s3 = new JTextField(); |
| | | tf_respm_s3.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_respm_s3.setDocument(new LimitedDocument(6, "0123456789.")); |
| | | panel_80.add(tf_respm_s3); |
| | | panel_99.add(tf_respm_s3); |
| | | tf_respm_s3.setColumns(10); |
| | | |
| | | tf_respm_s4 = new JTextField(); |
| | | tf_respm_s4.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_respm_s4.setDocument(new LimitedDocument(6, "0123456789.")); |
| | | panel_80.add(tf_respm_s4); |
| | | panel_99.add(tf_respm_s4); |
| | | tf_respm_s4.setColumns(10); |
| | | |
| | | panel_54.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), zdhj_title, TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_54); |
| | | panel_54.setLayout(new BoxLayout(panel_54, BoxLayout.X_AXIS)); |
| | | |
| | | tf_param_set_inf = new JTextField(); |
| | | tf_param_set_inf.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | panel_54.add(tf_param_set_inf); |
| | | tf_param_set_inf.setColumns(10); |
| | | //panel_54.add(tf_param_set_inf); |
| | | tf_param_set_inf.setColumns(30); |
| | | |
| | | JPanel panel_65 = new JPanel(); |
| | | panel_54.add(panel_65); |
| | |
| | | panel_65.add(btn_restart_dev); |
| | | btn_restart_dev.setFont(new Font("宋体", Font.PLAIN, 14)); |
| | | |
| | | JPanel panel_100 = new JPanel(); |
| | | add(panel_100); |
| | | panel_100.setLayout(new BorderLayout()); |
| | | |
| | | JPanel panel_90 = new JPanel(); |
| | | panel_100.add(panel_90,BorderLayout.CENTER); |
| | | |
| | | |
| | | JPanel panel_101 = new JPanel(); |
| | | panel_101.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u64cd\u4f5c\u7ed3\u679c\u4fe1\u606f", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_101.add(tf_param_set_inf,BorderLayout.CENTER); |
| | | |
| | | |
| | | panel_100.add(panel_101,BorderLayout.SOUTH); |
| | | |
| | | //模块校准 |
| | | panel_90.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u6a21\u5757\u6821\u51c6", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_90.setLayout(new GridLayout(3, 1)); |
| | | |
| | | |
| | | |
| | | JPanel panel_52 = new JPanel(); |
| | | zdhj_title = "实测电压(V) / 校准电压(V)"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | | zdhj_title = "Measure Vol(V) / Standerd Vol(V)"; |
| | | } |
| | | panel_52.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), zdhj_title, TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_52); |
| | | panel_52.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | panel_52.setLayout(new GridLayout(2, 1)); |
| | | panel_90.add(panel_52); |
| | | //panel_52.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | |
| | | |
| | | JPanel panel_91 = new JPanel(); |
| | | panel_52.add(panel_91); |
| | | panel_91.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | tf_zdhj_volcal_source = new JTextField(); |
| | | tf_zdhj_volcal_source.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_volcal_source.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | tf_zdhj_volcal_source.setText("0.0"); |
| | | tf_zdhj_volcal_source.setEditable(false); |
| | | panel_52.add(tf_zdhj_volcal_source); |
| | | panel_91.add(tf_zdhj_volcal_source); |
| | | tf_zdhj_volcal_source.setColumns(10); |
| | | |
| | | tf_zdhj_volcal_slope = new JTextField(); |
| | | tf_zdhj_volcal_slope.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_volcal_slope.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | tf_zdhj_volcal_slope.setDocument(new LimitedDocument(5, "0123456789.")); |
| | | panel_52.add(tf_zdhj_volcal_slope); |
| | | panel_91.add(tf_zdhj_volcal_slope); |
| | | tf_zdhj_volcal_slope.setColumns(10); |
| | | |
| | | JPanel panel_92 = new JPanel(); |
| | | panel_52.add(panel_92); |
| | | panel_92.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | |
| | | zdhj_title = "偏移校准"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_volcal_offset.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_52.add(btn_zdhj_volcal_offset); |
| | | btn_zdhj_volcal_offset.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | //panel_52.add(btn_zdhj_volcal_offset); |
| | | panel_92.add(btn_zdhj_volcal_offset); |
| | | |
| | | zdhj_title = "斜率校准"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_volcal_slope.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_52.add(btn_zdhj_volcal_slope); |
| | | btn_zdhj_volcal_slope.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | //panel_52.add(btn_zdhj_volcal_slope); |
| | | panel_92.add(btn_zdhj_volcal_slope); |
| | | |
| | | zdhj_title = "重置"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_volcal_reset.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_52.add(btn_zdhj_volcal_reset); |
| | | btn_zdhj_volcal_reset.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | //panel_52.add(btn_zdhj_volcal_reset); |
| | | panel_92.add(btn_zdhj_volcal_reset); |
| | | |
| | | |
| | | JPanel panel_53 = new JPanel(); |
| | | zdhj_title = "实测电流(A) / 校准电流(A)"; |
| | |
| | | zdhj_title = "Measure Curr(A) / Standerd Curr(A)"; |
| | | } |
| | | panel_53.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), zdhj_title, TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_53); |
| | | panel_53.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | panel_90.add(panel_53); |
| | | //panel_53.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | panel_53.setLayout(new GridLayout(2, 1)); |
| | | |
| | | JPanel panel_93 = new JPanel(); |
| | | panel_53.add(panel_93); |
| | | panel_93.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | |
| | | tf_zdhj_currcal_source = new JTextField(); |
| | | tf_zdhj_currcal_source.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_currcal_source.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | tf_zdhj_currcal_source.setText("0.0"); |
| | | tf_zdhj_currcal_source.setEditable(false); |
| | | panel_53.add(tf_zdhj_currcal_source); |
| | | panel_93.add(tf_zdhj_currcal_source); |
| | | tf_zdhj_currcal_source.setColumns(10); |
| | | |
| | | tf_zdhj_currcal_slope = new JTextField(); |
| | | tf_zdhj_currcal_slope.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_currcal_slope.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | tf_zdhj_currcal_slope.setDocument(new LimitedDocument(5, "0123456789.")); |
| | | panel_53.add(tf_zdhj_currcal_slope); |
| | | panel_93.add(tf_zdhj_currcal_slope); |
| | | tf_zdhj_currcal_slope.setColumns(10); |
| | | |
| | | JPanel panel_94 = new JPanel(); |
| | | panel_53.add(panel_94); |
| | | panel_94.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | zdhj_title = "清零"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_currcal_offset.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_53.add(btn_zdhj_currcal_offset); |
| | | btn_zdhj_currcal_offset.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | panel_94.add(btn_zdhj_currcal_offset); |
| | | |
| | | zdhj_title = "У"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_currcal_slope.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_53.add(btn_zdhj_currcal_slope); |
| | | btn_zdhj_currcal_slope.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | panel_94.add(btn_zdhj_currcal_slope); |
| | | |
| | | zdhj_title = "重置"; |
| | | if(LANG_TYPE_EN == LANG_TYPE) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | btn_zdhj_currcal_reset.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | panel_53.add(btn_zdhj_currcal_reset); |
| | | btn_zdhj_currcal_reset.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | panel_94.add(btn_zdhj_currcal_reset); |
| | | |
| | | JPanel panel_82 = new JPanel(); |
| | | //环境温度/校准温度 |
| | | panel_82.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u73AF\u5883\u6E29\u5EA6(\u2103) / \u6821\u51C6\u6E29\u5EA6(\u2103)", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); |
| | | panel_48.add(panel_82); |
| | | panel_82.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | panel_90.add(panel_82); |
| | | //panel_82.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| | | panel_82.setLayout(new GridLayout(2, 1)); |
| | | |
| | | JPanel panel_95 = new JPanel(); |
| | | panel_82.add(panel_95); |
| | | panel_95.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | tf_zdhj_temp = new JTextField(); |
| | | tf_zdhj_temp.setText("0.0"); |
| | | tf_zdhj_temp.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | tf_zdhj_temp.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | tf_zdhj_temp.setEditable(false); |
| | | panel_82.add(tf_zdhj_temp); |
| | | panel_95.add(tf_zdhj_temp); |
| | | tf_zdhj_temp.setColumns(10); |
| | | |
| | | tf_zdhj_tmp_cal = new JTextField(); |
| | | tf_zdhj_tmp_cal.setFont(new Font("Dialog", Font.PLAIN, 18)); |
| | | panel_82.add(tf_zdhj_tmp_cal); |
| | | tf_zdhj_tmp_cal.setFont(new Font("Dialog", Font.PLAIN, 22)); |
| | | panel_95.add(tf_zdhj_tmp_cal); |
| | | tf_zdhj_tmp_cal.setColumns(10); |
| | | tf_zdhj_currcal_slope.setDocument(new LimitedDocument(4, "0123456789.")); |
| | | |
| | | JPanel panel_96 = new JPanel(); |
| | | panel_82.add(panel_96); |
| | | panel_96.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| | | |
| | | |
| | | |
| | | |
| | | btn_zdhj_temp_cal = new JButton("\u6E29\u5EA6\u6821\u51C6"); |
| | | btn_zdhj_temp_cal.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | btn_zdhj_temp_cal.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | btn_zdhj_temp_cal.setEnabled(false); |
| | | btn_zdhj_temp_cal.addActionListener(new ActionListener() { |
| | | public void actionPerformed(ActionEvent e) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | panel_82.add(btn_zdhj_temp_cal); |
| | | panel_96.add(btn_zdhj_temp_cal); |
| | | |
| | | btn_zdhj_temp_cal_reset = new JButton("\u6E29\u5EA6\u91CD\u7F6E"); |
| | | btn_zdhj_temp_cal_reset.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | btn_zdhj_temp_cal_reset.setFont(new Font("宋体", Font.PLAIN, 22)); |
| | | btn_zdhj_temp_cal_reset.setEnabled(false); |
| | | btn_zdhj_temp_cal_reset.addActionListener(new ActionListener() { |
| | | public void actionPerformed(ActionEvent arg0) { |
| | |
| | | res_type_tag, res_type_tag.length); |
| | | } |
| | | }); |
| | | panel_82.add(btn_zdhj_temp_cal_reset); |
| | | panel_96.add(btn_zdhj_temp_cal_reset); |
| | | /**************************************************************************/ |
| | | |
| | | setButttonState(false); |