示例#1
0
  private void initComponents() { // GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;

    jPanel9 = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    jLabel10 = new javax.swing.JLabel();
    jPanel11 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    messageTextField = new javax.swing.JTextField();
    categoryTextField = new javax.swing.JTextField();
    domainTextField = new javax.swing.JTextField();
    networkTextField = new javax.swing.JTextField();
    nodeTextField = new javax.swing.JTextField();
    entityTextField = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    jPanel3 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    jSeparator1 = new javax.swing.JSeparator();
    jPanel4 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    okButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    jPanel10 = new javax.swing.JPanel();
    moreButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Match criteria Properties"); // No i18n
    setModal(true);
    jPanel9.setLayout(new java.awt.BorderLayout());

    jPanel1.setLayout(new java.awt.BorderLayout());

    jLabel10.setIcon(AddAction.getIcon("images/advancedframe_top.jpg")); // No i18n
    jPanel1.add(jLabel10, java.awt.BorderLayout.CENTER);

    jPanel9.add(jPanel1, java.awt.BorderLayout.NORTH);

    jPanel11.setLayout(new java.awt.BorderLayout());

    jPanel2.setLayout(new java.awt.GridBagLayout());

    jLabel1.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel1.setText(NmsClientUtil.GetString("javaui.filter.Message"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel1, gridBagConstraints);

    jLabel2.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel2.setText(NmsClientUtil.GetString("javaui.filter.Category"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel2, gridBagConstraints);

    jLabel3.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel3.setText(NmsClientUtil.GetString("javaui.filter.Domain"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel3, gridBagConstraints);

    jLabel4.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel4.setText(NmsClientUtil.GetString("javaui.filter.Network"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel4, gridBagConstraints);

    jLabel5.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel5.setText(NmsClientUtil.GetString("javaui.filter.Node"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel5, gridBagConstraints);

    jLabel6.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel6.setText(NmsClientUtil.GetString("javaui.filter.Entity"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel6, gridBagConstraints);

    messageTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(messageTextField, gridBagConstraints);

    categoryTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(categoryTextField, gridBagConstraints);

    domainTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(domainTextField, gridBagConstraints);

    networkTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(networkTextField, gridBagConstraints);

    nodeTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(nodeTextField, gridBagConstraints);

    entityTextField.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(7, 3, 7, 7);
    jPanel2.add(entityTextField, gridBagConstraints);

    jLabel7.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel7.setText(NmsClientUtil.GetString("javaui.filter.FilterCriteria"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    jPanel2.add(jLabel7, gridBagConstraints);

    jLabel9.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    jPanel2.add(jLabel9, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(12, 3, 7, 7);
    jPanel2.add(jSeparator2, gridBagConstraints);

    jPanel11.add(jPanel2, java.awt.BorderLayout.CENTER);

    jPanel3.setLayout(new java.awt.BorderLayout());

    jPanel5.setLayout(new java.awt.BorderLayout());

    jPanel5.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
    jPanel5.add(jSeparator1, java.awt.BorderLayout.CENTER);

    jPanel3.add(jPanel5, java.awt.BorderLayout.NORTH);

    jPanel4.setLayout(new java.awt.BorderLayout());

    jPanel4.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
    jPanel4.add(jPanel6, java.awt.BorderLayout.CENTER);

    jPanel7.setLayout(new java.awt.GridLayout(1, 0, 6, 0));

    jPanel7.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
    okButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    okButton.setText(NmsClientUtil.GetString("javaui.filter.OK"));
    okButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
          }
        });

    jPanel7.add(okButton);

    cancelButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    cancelButton.setText(NmsClientUtil.GetString("javaui.filter.Cancel"));
    cancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
          }
        });

    jPanel7.add(cancelButton);

    jPanel4.add(jPanel7, java.awt.BorderLayout.EAST);

    jPanel10.setLayout(new java.awt.GridLayout(1, 0, 5, 0));

    jPanel10.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
    moreButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    moreButton.setText(NmsClientUtil.GetString("javaui.filter.MoreProperties"));
    moreButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            moreButtonActionPerformed(evt);
          }
        });

    jPanel10.add(moreButton);

    jPanel4.add(jPanel10, java.awt.BorderLayout.WEST);

    jPanel3.add(jPanel4, java.awt.BorderLayout.CENTER);

    jPanel11.add(jPanel3, java.awt.BorderLayout.SOUTH);

    jPanel9.add(jPanel11, java.awt.BorderLayout.CENTER);

    getContentPane().add(jPanel9, java.awt.BorderLayout.NORTH);

    pack();
  } // GEN-END:initComponents
  private void initComponents() { // GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;

    jPanel1 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    saName = new javax.swing.JTextField();
    saInt = new javax.swing.JTextField();
    jPanel3 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    jSeparator1 = new javax.swing.JSeparator();
    jPanel4 = new javax.swing.JPanel();
    saYes = new javax.swing.JRadioButton();
    saNo = new javax.swing.JRadioButton();
    jPanel7 = new javax.swing.JPanel();
    jPanel8 = new javax.swing.JPanel();
    jPanel9 = new javax.swing.JPanel();
    helpButton = new javax.swing.JButton();
    jPanel10 = new javax.swing.JPanel();
    okButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle(AddAction.suppressAction);
    jPanel1.setLayout(new java.awt.BorderLayout());

    // jPanel1.setPreferredSize(new java.awt.Dimension(350, 160));
    jPanel2.setLayout(new java.awt.GridBagLayout());

    jLabel1.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel1.setText(NmsClientUtil.GetString("javaui.filter.NotificationName"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(6, 11, 6, 6);
    jPanel2.add(jLabel1, gridBagConstraints);

    jLabel2.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel2.setText(NmsClientUtil.GetString("javaui.filter.SuppressAll"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(2, 11, 1, 6);
    jPanel2.add(jLabel2, gridBagConstraints);

    jLabel3.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel3.setText(NmsClientUtil.GetString("javaui.filter.SuppressInterval"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(6, 11, 1, 6);
    jPanel2.add(jLabel3, gridBagConstraints);

    saName.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(6, 6, 6, 11);
    jPanel2.add(saName, gridBagConstraints);

    saInt.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(6, 6, 1, 11);
    jPanel2.add(saInt, gridBagConstraints);

    jPanel3.setLayout(new java.awt.GridBagLayout());

    jLabel4.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    jLabel4.setText(NmsClientUtil.GetString("javaui.filter.SuppressAction"));
    jPanel3.add(jLabel4, new java.awt.GridBagConstraints());

    jSeparator2.setPreferredSize(new java.awt.Dimension(300, 5));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
    jPanel3.add(jSeparator2, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(15, 5, 5, 5);
    jPanel2.add(jPanel3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 0, 5);
    jPanel2.add(jSeparator1, gridBagConstraints);

    jPanel4.setLayout(new java.awt.GridLayout(1, 0));

    saYes.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    saYes.setSelected(true);
    saInt.setEnabled(false);
    saYes.setText(NmsClientUtil.GetString("javaui.filter.Yes"));
    saYes.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            saYesActionPerformed(evt);
          }
        });

    jPanel4.add(saYes);

    saNo.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    saNo.setText(NmsClientUtil.GetString("javaui.filter.No"));
    saNo.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            saNoActionPerformed(evt);
          }
        });

    jPanel4.add(saNo);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(1, 11, 1, 16);
    jPanel2.add(jPanel4, gridBagConstraints);

    jPanel7.setLayout(new java.awt.BorderLayout());

    jPanel7.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 10, 10)));
    jPanel7.add(jPanel8, java.awt.BorderLayout.CENTER);

    jPanel9.setLayout(new java.awt.GridLayout(1, 0));

    helpButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    helpButton.setText(NmsClientUtil.GetString("javaui.filter.Help"));
    helpButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            helpButtonActionPerformed(evt);
          }
        });
    jPanel9.add(helpButton);

    jPanel7.add(jPanel9, java.awt.BorderLayout.WEST);

    jPanel10.setLayout(new java.awt.GridLayout(1, 0, 5, 0));

    okButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    okButton.setText(NmsClientUtil.GetString("javaui.filter.OK"));
    okButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
          }
        });

    jPanel10.add(okButton);

    cancelButton.setFont(NmsClientUtil.getFont("DIALOG")); // No i18n
    cancelButton.setText(NmsClientUtil.GetString("javaui.filter.Cancel"));
    cancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
          }
        });

    jPanel10.add(cancelButton);

    jPanel7.add(jPanel10, java.awt.BorderLayout.EAST);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    gridBagConstraints.weightx = 0.1;
    jPanel2.add(jPanel7, gridBagConstraints);

    jPanel1.add(jPanel2, java.awt.BorderLayout.NORTH);

    getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

    pack();
  } // GEN-END:initComponents