📄 commonnodeconfpanel.java
字号:
/*
* ConfPanel.java
*
* Created on 25 de Novembro de 2005, 10:59
*/
package gui;
/**
*
* @author Helen Peters
*/
public class CommonNodeConfPanel extends javax.swing.JPanel {
/** Creates new form ConfPanel */
public CommonNodeConfPanel() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
commonNodeApplicationComboBox = new javax.swing.JComboBox();
commonNodeNumberLabel = new javax.swing.JLabel();
commonNodeNumberTextField = new javax.swing.JTextField();
commonNodeLocationLabel = new javax.swing.JLabel();
commonNodeEnergyLabel = new javax.swing.JLabel();
commonNodeEnergyTextField = new javax.swing.JTextField();
joulesLabel = new javax.swing.JLabel();
commonNodeApplicationLabel = new javax.swing.JLabel();
commonNodeLocationComboBox = new javax.swing.JComboBox();
commonNodeTransmissionRangeLabel = new javax.swing.JLabel();
commonNodeDissTypeLabel = new javax.swing.JLabel();
commonNodeDissTypeComboBox = new javax.swing.JComboBox();
secondsLabel = new javax.swing.JLabel();
commonNodeDissIntervalTextField = new javax.swing.JTextField();
commonNodeDissIntervalLabel = new javax.swing.JLabel();
commonNodeApplicationLabel1 = new javax.swing.JLabel();
commonNodeProcessingTypeComboBox = new javax.swing.JComboBox();
commonNodeDissTypeLabel1 = new javax.swing.JLabel();
commonNodeDissIntervalLabel1 = new javax.swing.JLabel();
commonNodeSensingTypeComboBox = new javax.swing.JComboBox();
commonNodeSensingIntervalTextField = new javax.swing.JTextField();
secondsLabel1 = new javax.swing.JLabel();
dataGeneratorTypeLabel = new javax.swing.JLabel();
dataGeneratorTypeComboBox = new javax.swing.JComboBox();
deviationLabel = new javax.swing.JLabel();
averageDataLabel = new javax.swing.JLabel();
maxDataLabel = new javax.swing.JLabel();
dataAverageTextField = new javax.swing.JTextField();
deviationTextField = new javax.swing.JTextField();
maxDataTextField = new javax.swing.JTextField();
metersLabel = new javax.swing.JLabel();
commonNodeTransmissionRangeTextField = new javax.swing.JTextField();
setLayout(null);
setBackground(new java.awt.Color(240, 238, 231));
commonNodeApplicationComboBox.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeApplicationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Application/ComonNodeApplication" }));
commonNodeApplicationComboBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeApplicationComboBoxActionPerformed(evt);
}
});
add(commonNodeApplicationComboBox);
commonNodeApplicationComboBox.setBounds(210, 140, 270, 22);
commonNodeNumberLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeNumberLabel.setText("COMMON NODE NUMBER: ");
add(commonNodeNumberLabel);
commonNodeNumberLabel.setBounds(20, 20, 131, 14);
commonNodeNumberTextField.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeNumberTextField.setText("1");
commonNodeNumberTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeNumberTextFieldActionPerformed(evt);
}
});
commonNodeNumberTextField.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
commonNodeNumberTextFieldFocusLost(evt);
}
});
add(commonNodeNumberTextField);
commonNodeNumberTextField.setBounds(210, 20, 250, 19);
commonNodeLocationLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeLocationLabel.setText("COMMON NODE LOCATION:");
add(commonNodeLocationLabel);
commonNodeLocationLabel.setBounds(20, 60, 138, 14);
commonNodeEnergyLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeEnergyLabel.setText("INITIAL ENERGY:");
add(commonNodeEnergyLabel);
commonNodeEnergyLabel.setBounds(20, 100, 81, 14);
commonNodeEnergyTextField.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeEnergyTextField.setText("1000");
commonNodeEnergyTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeEnergyTextFieldActionPerformed(evt);
}
});
commonNodeEnergyTextField.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
commonNodeEnergyTextFieldFocusLost(evt);
}
});
add(commonNodeEnergyTextField);
commonNodeEnergyTextField.setBounds(210, 100, 220, 19);
joulesLabel.setFont(new java.awt.Font("Arial", 0, 11));
joulesLabel.setText("Joules");
add(joulesLabel);
joulesLabel.setBounds(450, 100, 40, 20);
commonNodeApplicationLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeApplicationLabel.setText("COMMON NODE APPLICATION:");
add(commonNodeApplicationLabel);
commonNodeApplicationLabel.setBounds(20, 140, 155, 14);
commonNodeLocationComboBox.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeLocationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "RANDOM", "GRID" }));
commonNodeLocationComboBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeLocationComboBoxActionPerformed(evt);
}
});
add(commonNodeLocationComboBox);
commonNodeLocationComboBox.setBounds(210, 60, 270, 22);
commonNodeTransmissionRangeLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeTransmissionRangeLabel.setText("TRANSMISSION RANGE:");
add(commonNodeTransmissionRangeLabel);
commonNodeTransmissionRangeLabel.setBounds(20, 220, 118, 14);
commonNodeDissTypeLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissTypeLabel.setText("DISSEMINATION TYPE: ");
add(commonNodeDissTypeLabel);
commonNodeDissTypeLabel.setBounds(20, 260, 112, 14);
commonNodeDissTypeComboBox.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Continuous", "Programmed", "On Demand" }));
commonNodeDissTypeComboBox.setSelectedIndex(1);
commonNodeDissTypeComboBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeDissTypeComboBoxActionPerformed(evt);
}
});
add(commonNodeDissTypeComboBox);
commonNodeDissTypeComboBox.setBounds(210, 260, 270, 22);
secondsLabel.setFont(new java.awt.Font("Arial", 0, 11));
secondsLabel.setText("seconds");
add(secondsLabel);
secondsLabel.setBounds(440, 300, 50, 14);
commonNodeDissIntervalTextField.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissIntervalTextField.setText("20");
commonNodeDissIntervalTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeDissIntervalTextFieldActionPerformed(evt);
}
});
commonNodeDissIntervalTextField.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
commonNodeDissIntervalTextFieldFocusLost(evt);
}
});
add(commonNodeDissIntervalTextField);
commonNodeDissIntervalTextField.setBounds(210, 300, 220, 19);
commonNodeDissIntervalLabel.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissIntervalLabel.setText("DISSEMINATION INTERVAL:");
add(commonNodeDissIntervalLabel);
commonNodeDissIntervalLabel.setBounds(20, 300, 133, 14);
commonNodeApplicationLabel1.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeApplicationLabel1.setText("PROCESSING TYPE:");
add(commonNodeApplicationLabel1);
commonNodeApplicationLabel1.setBounds(20, 180, 97, 14);
commonNodeProcessingTypeComboBox.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeProcessingTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Processing/AggregateProcessing" }));
commonNodeProcessingTypeComboBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeProcessingTypeComboBoxActionPerformed(evt);
}
});
add(commonNodeProcessingTypeComboBox);
commonNodeProcessingTypeComboBox.setBounds(210, 180, 270, 22);
commonNodeDissTypeLabel1.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissTypeLabel1.setText("SENSING TYPE: ");
add(commonNodeDissTypeLabel1);
commonNodeDissTypeLabel1.setBounds(20, 340, 79, 14);
commonNodeDissIntervalLabel1.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeDissIntervalLabel1.setText("SENSING INTERVAL:");
add(commonNodeDissIntervalLabel1);
commonNodeDissIntervalLabel1.setBounds(20, 380, 100, 14);
commonNodeSensingTypeComboBox.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeSensingTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Continuous", "Programmed", "On Demand" }));
commonNodeSensingTypeComboBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeSensingTypeComboBoxActionPerformed(evt);
}
});
add(commonNodeSensingTypeComboBox);
commonNodeSensingTypeComboBox.setBounds(210, 340, 270, 22);
commonNodeSensingIntervalTextField.setFont(new java.awt.Font("Arial", 0, 11));
commonNodeSensingIntervalTextField.setText("5");
commonNodeSensingIntervalTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commonNodeSensingIntervalTextFieldActionPerformed(evt);
}
});
commonNodeSensingIntervalTextField.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
commonNodeSensingIntervalTextFieldFocusLost(evt);
}
});
add(commonNodeSensingIntervalTextField);
commonNodeSensingIntervalTextField.setBounds(210, 380, 220, 19);
secondsLabel1.setFont(new java.awt.Font("Arial", 0, 11));
secondsLabel1.setText("seconds");
add(secondsLabel1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -