⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newthresholddlg.java

📁 270的linux说明
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
					}				}			}					}catch(Exception e)		{					}	}	/**	 * This method initializes jRadioButton		 * 		 * @return javax.swing.JRadioButton		 */    	private JRadioButton getJRadioButton() {		if (jRadioButton == null) {			jRadioButton = new JRadioButton();			jRadioButton.setBounds(17, 48, 80, 21);			jRadioButton.setText("Counter");			jRadioButton.setName("radCounter");			jRadioButton.addActionListener(new java.awt.event.ActionListener() { 				public void actionPerformed(java.awt.event.ActionEvent e) {					radioCounterSelected();				}			});		}		return jRadioButton;	}		private void radioCounterSelected()	{		//getJRadioButton().setSelected(true);//Counter		getJRadioButton1().setSelected(false);//Gauge		getJRadioButton2().setSelected(false);//Value		getJTextField1().setEnabled(true);//match		getJTextField2().setEnabled(false);//low		getJTextField3().setEnabled(false);//high		getJTextField4().setEnabled(true);//offset		getJCheckBox().setEnabled(true);//match notify		getJCheckBox1().setEnabled(false);//diff notify		getJCheckBox2().setEnabled(false);//low notify		getJCheckBox3().setEnabled(false);//high notify	}		/**	 * This method initializes jRadioButton1		 * 		 * @return javax.swing.JRadioButton		 */    	private JRadioButton getJRadioButton1() {		if (jRadioButton1 == null) {			jRadioButton1 = new JRadioButton();			jRadioButton1.setBounds(104, 47, 79, 21);			jRadioButton1.setText("Gauge");			jRadioButton1.setName("radGauge");			jRadioButton1.addActionListener(new java.awt.event.ActionListener() { 				public void actionPerformed(java.awt.event.ActionEvent e) {    					radioGaugeSelected();				}			});		}		return jRadioButton1;	}		private void radioGaugeSelected()	{		getJRadioButton().setSelected(false);//Counter		//getJRadioButton1().setSelected(true);//Gauge		getJRadioButton2().setSelected(false);//Value		getJTextField1().setEnabled(false);//match		getJTextField2().setEnabled(true);//low		getJTextField3().setEnabled(true);//high		getJTextField4().setEnabled(true);//offset		getJCheckBox().setEnabled(false);//match notify		getJCheckBox1().setEnabled(false);//diff notify		getJCheckBox2().setEnabled(true);//low notify		getJCheckBox3().setEnabled(true);//high notify	}		/**	 * This method initializes jRadioButton2		 * 		 * @return javax.swing.JRadioButton		 */    	private JRadioButton getJRadioButton2() {		if (jRadioButton2 == null) {			jRadioButton2 = new JRadioButton();			jRadioButton2.setBounds(180, 47, 84, 21);			jRadioButton2.setText("Value");			jRadioButton2.setName("radValue");			jRadioButton2.addActionListener(new java.awt.event.ActionListener() { 				public void actionPerformed(java.awt.event.ActionEvent e) {    					radioValueSelected();				}			});		}		return jRadioButton2;	}		private void radioValueSelected()	{		getJRadioButton().setSelected(false);//Counter		getJRadioButton1().setSelected(false);//Gauge		//getJRadioButton2().setSelected(true);//Value		getJTextField1().setEnabled(true);//match		getJTextField2().setEnabled(false);//low		getJTextField3().setEnabled(false);//high		getJTextField4().setEnabled(false);//offset		getJCheckBox().setEnabled(true);//match notify		getJCheckBox1().setEnabled(true);//diff notify		getJCheckBox2().setEnabled(false);//low notify		getJCheckBox3().setEnabled(false);//high notify	}		/**	 * This method initializes jTextField1		 * 		 * @return javax.swing.JTextField		 */    	private JTextField getJTextField1() {		if (jTextField1 == null) {			jTextField1 = new JTextField();			jTextField1.setBounds(99, 95, 146, 19);		}		return jTextField1;	}	/**	 * This method initializes jTextField2		 * 		 * @return javax.swing.JTextField		 */    	private JTextField getJTextField2() {		if (jTextField2 == null) {			jTextField2 = new JTextField();			jTextField2.setBounds(99, 121, 144, 22);		}		return jTextField2;	}	/**	 * This method initializes jTextField3		 * 		 * @return javax.swing.JTextField		 */    	private JTextField getJTextField3() {		if (jTextField3 == null) {			jTextField3 = new JTextField();			jTextField3.setBounds(99, 149, 145, 23);		}		return jTextField3;	}	/**	 * This method initializes jTextField4		 * 		 * @return javax.swing.JTextField		 */    	private JTextField getJTextField4() {		if (jTextField4 == null) {			jTextField4 = new JTextField();			jTextField4.setBounds(99, 179, 145, 22);			jTextField4.setText("0");		}		return jTextField4;	}	/**	 * This method initializes jCheckBox		 * 		 * @return javax.swing.JCheckBox		 */    	private JCheckBox getJCheckBox() {		if (jCheckBox == null) {			jCheckBox = new JCheckBox();			jCheckBox.setBounds(252, 93, 102, 19);			jCheckBox.setText("Match Notify");			jCheckBox.setSelected(true);		}		return jCheckBox;	}	/**	 * This method initializes jCheckBox1		 * 		 * @return javax.swing.JCheckBox		 */    	private JCheckBox getJCheckBox1() {		if (jCheckBox1 == null) {			jCheckBox1 = new JCheckBox();			jCheckBox1.setBounds(362, 93, 88, 21);			jCheckBox1.setText("Diff Notify");			jCheckBox1.setSelected(true);		}		return jCheckBox1;	}	/**	 * This method initializes jCheckBox2		 * 		 * @return javax.swing.JCheckBox		 */    	private JCheckBox getJCheckBox2() {		if (jCheckBox2 == null) {			jCheckBox2 = new JCheckBox();			jCheckBox2.setBounds(252, 121, 102, 18);			jCheckBox2.setText("Low Notify");			jCheckBox2.setSelected(true);		}		return jCheckBox2;	}	/**	 * This method initializes jCheckBox3		 * 		 * @return javax.swing.JCheckBox		 */    	private JCheckBox getJCheckBox3() {		if (jCheckBox3 == null) {			jCheckBox3 = new JCheckBox();			jCheckBox3.setBounds(252, 149, 101, 20);			jCheckBox3.setText("High Notify");			jCheckBox3.setSelected(true);		}		return jCheckBox3;	}	/**	 * This method initializes jSlider		 * 		 * @return javax.swing.JSlider		 */    	private JSlider getJSlider() {		if (jSlider == null) {			jSlider = new JSlider();			jSlider.setBounds(93, 204, 269, 19);			jSlider.setMinimum(1000);			jSlider.setMaximum(10000);			jSlider.setValue(5000);			jSlider.addChangeListener(new javax.swing.event.ChangeListener() { 				public void stateChanged(javax.swing.event.ChangeEvent e) {  					rateSliderValueChanged();				}			});					}		return jSlider;	}		private void rateSliderValueChanged()	{		getJTextField5().setText(String.valueOf(getJSlider().getValue()));	}		/**	 * This method initializes jTextField5		 * 		 * @return javax.swing.JTextField		 */    	private JTextField getJTextField5() {		if (jTextField5 == null) {			jTextField5 = new JTextField();			jTextField5.setBounds(375, 199, 58, 22);			jTextField5.setEditable(false);			jTextField5.setText(String.valueOf(getJSlider().getValue()));		}		return jTextField5;	}	/**	 * This method initializes jButton		 * 		 * @return javax.swing.JButton		 */    	private JButton getJButton() {		if (jButton == null) {			jButton = new JButton();			jButton.setBounds(292, 240, 71, 24);			jButton.setText("OK");			jButton.addActionListener(new java.awt.event.ActionListener() { 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -