示例#1
0
  public void init() {

    // <Begin_init>
    if (initialized == true) return;
    this.setSize(getPreferredSize().width + 682, getPreferredSize().height + 419);
    setTitle(NmsClientUtil.GetString("Router Display Panel"));
    Container container = getContentPane();
    container.setLayout(new BorderLayout());
    try {
      initVariables();
      setUpGUI(container);
      setUpProperties();
      setUpConnections();
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Error in init method"), ex);
    }
    // let us set the initialzed variable to true so
    // we dont initialize again even if init is called
    initialized = true;
    setUpMenus();
    setUpToolBar();

    // <End_init>
    setIconImage(NmsClientUtil.getFrameIcon());
  }
示例#2
0
    public void mousePressed(java.awt.event.MouseEvent arg0) {
      JPanel4.showCard("inter"); // No Internationalisation

      ((com.adventnet.nms.examples.routermap.IFDetails) JPanel4.getCard("inter"))
          .setValues((Properties) routerobject.elementAt(6)); // No Internationalisation
      JLabel1.setText(NmsClientUtil.GetString("Interface Details"));
    }
示例#3
0
 public void actionPerformed(java.awt.event.ActionEvent arg0) {
   JPanel4.showCard("router"); // No Internationalisation
   Properties prop = (Properties) routerobject.elementAt(0);
   ((com.adventnet.nms.examples.routermap.RouterDetails) JPanel4.getCard("router"))
       .setValues((Properties) routerobject.elementAt(0)); // No Internationalisation
   JLabel1.setText(
       NmsClientUtil.GetString("Router details  :  ")
           + prop.getProperty("name")); // No Internationalisation
 }
  private void okButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_okButtonActionPerformed
    String name = saName.getText();
    if (AddAction.checkNull(saName, NmsClientUtil.GetString("Notification Name"))) {
      return;
    }
    if (AddAction.checkNumber(saInt, jLabel3.getText())) {
      return;
    }
    addAction.addNewAction(getProperties(), AddAction.suppressAction); // No i18n

    this.setVisible(false);
    this.dispose();
  } // GEN-LAST:event_okButtonActionPerformed
示例#5
0
  public void run() {
    String objRouter = applet.getParameter("name");
    // No Internationalisation
    try {
      ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
      DataOutputStream outp = new DataOutputStream(byteStream);
      outp.writeInt(GenericConstants.ROUTER_PROPERTIES);
      outp.writeUTF(objRouter);
      outp.flush();

      byte[] bytes = byteStream.toByteArray();
      outp.close();
      byteStream.reset();
      byteStream.close();
      byte[] data = GenericSession.getInstance().syncSend(bytes);
      if (data != null) {
        DataInputStream inp = new DataInputStream(new ByteArrayInputStream(data));
        int reqId = inp.readInt();
        if (reqId == GenericConstants.ROUTER_PROPERTIES) {
          int length = inp.readInt();
          byte serverData[] = new byte[length];
          inp.readFully(serverData);
          routerobject = NmsClientUtil.deSerializeVector(serverData);
        }

        init();
        refresh();
        super.setVisible(true);
      }
      /*init();
      refresh();
      super.setVisible(true);*/

      else close();

    } catch (Exception e) {
      // NmsClientUtil.err(NmsClientUtil.getFrame(app),"IO Error sending request to server.
      // "+e);//No Internationalisation
    }
  }
示例#6
0
  public void setUpConnections() throws Exception {

    // <Begin_setUpConnections>

    nine_nine_conn1 nine_nine_conn11 = new nine_nine_conn1();
    nine.addMouseListener(nine_nine_conn11);
    six_six_conn1 six_six_conn11 = new six_six_conn1();
    six.addMouseListener(six_six_conn11);
    eight_eight_conn1 eight_eight_conn11 = new eight_eight_conn1();
    eight.addMouseListener(eight_eight_conn11);
    one_one_conn1 one_one_conn11 = new one_one_conn1();
    one.addMouseListener(one_one_conn11);
    four_four_conn1 four_four_conn11 = new four_four_conn1();
    four.addMouseListener(four_four_conn11);
    ten_ten_conn1 ten_ten_conn11 = new ten_ten_conn1();
    ten.addMouseListener(ten_ten_conn11);
    two_two_conn1 two_two_conn11 = new two_two_conn1();
    two.addMouseListener(two_two_conn11);
    three_three_conn2 three_three_conn21 = new three_three_conn2();
    three.addMouseListener(three_three_conn21);
    seven_seven_conn1 seven_seven_conn11 = new seven_seven_conn1();
    seven.addMouseListener(seven_seven_conn11);
    five_five_conn1 five_five_conn11 = new five_five_conn1();
    five.addMouseListener(five_five_conn11);
    RouterBtn_RouterBtn_conn2 RouterBtn_RouterBtn_conn21 = new RouterBtn_RouterBtn_conn2();
    RouterBtn.addMouseListener(RouterBtn_RouterBtn_conn21);
    CloseBtn_CloseBtn_conn1 CloseBtn_CloseBtn_conn11 = new CloseBtn_CloseBtn_conn1();
    CloseBtn.addActionListener(CloseBtn_CloseBtn_conn11);
    RouterBtn_RouterBtn_conn1 RouterBtn_RouterBtn_conn11 = new RouterBtn_RouterBtn_conn1();
    RouterBtn.addActionListener(RouterBtn_RouterBtn_conn11);
    // <End_setUpConnections>
    RefreshBtn.setActionCommand("refresh"); // No Internationalisation
    RefreshBtn.addActionListener(this);
    NmsClientUtil.centerWindow(this);
    addWindowListener(this);
  }
示例#7
0
 public void showStatus(String message, Exception ex) {
   // <Begin_showStatus_String_Exception>
   System.out.println(NmsClientUtil.GetString("Internal Error :") + message);
   ex.printStackTrace();
   // <End_showStatus_String_Exception>
 }
示例#8
0
 public void showStatus(String message) {
   // <Begin_showStatus_String>
   System.out.println(NmsClientUtil.GetString("Internal Error :") + message);
   // <End_showStatus_String>
 }
示例#9
0
  void refresh() {

    JPanel4.showCard("router"); // No Internationalisation
    if (routerobject != null) {
      ((com.adventnet.nms.examples.routermap.RouterDetails) JPanel4.getCard("router"))
          .setValues((Properties) routerobject.elementAt(0)); // No Internationalisation
      Properties prop = (Properties) routerobject.elementAt(0);
      RouterBtn.setBackground(
          SeverityInfo.getInstance()
              .getColor(Integer.parseInt(prop.getProperty("status")))); // No Internationalisation
      RouterBtn.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
      JLabel1.setText(
          NmsClientUtil.GetString("Router details  :  ")
              + prop.getProperty("name")); // No Internationalisation
    }
    if (routerobject.size() >= 2) {
      one.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(1);
      one.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      one.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 3) {
      two.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(2);
      two.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      two.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 4) {
      three.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(3);
      three.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      three.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 5) {
      four.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(4);
      four.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      four.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 6) {
      five.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(5);
      five.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      five.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 7) {
      six.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(6);
      six.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      six.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 8) {
      seven.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(7);
      seven.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      seven.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 9) {
      eight.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(8);
      eight.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      eight.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 10) {
      nine.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(9);
      nine.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      nine.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
    if (routerobject.size() >= 11) {
      ten.setVisible(true);
      Properties prop = (Properties) routerobject.elementAt(10);
      ten.setValues(
          SeverityInfo.getInstance().getColor(Integer.parseInt(prop.getProperty("status"))),
          prop.getProperty("ipAddress")); // No Internationalisation
      ten.setToolTipText(prop.getProperty("ipAddress")); // No Internationalisation
    }
  }
示例#10
0
  public void setUpProperties() throws Exception {

    // <Begin_setUpProperties>

    try {
      Top.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + Top, ex);
    }
    setResizable(false);
    try {
      JPanel1.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel1, ex);
    }

    try {
      RouterBtn.setFocusPainted(false);

      RouterBtn.setIcon(
          NmsClientUtil.getImageIcon(
              applet.getDocumentBase() + "../images/router_new1.png")); // No Internationalisation
      RouterBtn.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + RouterBtn, ex);
    }

    try {
      eight.setOpaque(true);
      eight.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + eight, ex);
    }
    eight.setVisible(false);
    try {
      one.setOpaque(true);
      one.setToolTipText(""); // No Internationalisation
      one.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + one, ex);
    }
    one.setVisible(false);
    try {
      six.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + six, ex);
    }
    six.setVisible(false);
    try {
      three.setOpaque(true);
      three.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + three, ex);
    }
    three.setVisible(false);
    try {
      four.setOpaque(true);
      four.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + four, ex);
    }
    four.setVisible(false);
    try {
      seven.setOpaque(true);
      seven.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + seven, ex);
    }
    seven.setVisible(false);
    try {
      two.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + two, ex);
    }
    two.setVisible(false);
    try {
      ten.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + ten, ex);
    }
    ten.setVisible(false);
    try {
      five.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + five, ex);
    }
    five.setVisible(false);
    try {
      nine.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + nine, ex);
    }
    nine.setVisible(false);
    try {
      JPanel2.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel2, ex);
    }

    try {
      JPanel3.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel3, ex);
    }

    try {
      JLabel1.setBackground(new Color(-1));
      JLabel1.setHorizontalTextPosition(0);
      JLabel1.setHorizontalAlignment(0);
      JLabel1.setText(NmsClientUtil.GetString("Router details"));
      JLabel1.setFont(new Font("Dialog", 1, 14)); // No Internationalisation
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JLabel1, ex);
    }

    try {
      JPanel4.setBackground(new Color(-1));
      java.lang.String[] JPanel4cardAndClassNames_array = new java.lang.String[2];
      JPanel4cardAndClassNames_array[0] =
          "router=com.adventnet.nms.examples.routermap.RouterDetails"; // No Internationalisation
      JPanel4cardAndClassNames_array[1] =
          "inter=com.adventnet.nms.examples.routermap.IFDetails"; // No Internationalisation
      JPanel4.setCardAndClassNames(JPanel4cardAndClassNames_array);
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel4, ex);
    }

    try {
      JPanel5.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel5, ex);
    }

    try {
      RefreshBtn.setText(NmsClientUtil.GetString("Refresh"));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + RefreshBtn, ex);
    }

    try {
      CloseBtn.setText(NmsClientUtil.GetString("Close"));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + CloseBtn, ex);
    }
    CloseBtn.setPreferredSize(
        new Dimension(
            CloseBtn.getPreferredSize().width + 12, CloseBtn.getPreferredSize().height + 0));
    JPanel5.setPreferredSize(
        new Dimension(
            JPanel5.getPreferredSize().width + 229, JPanel5.getPreferredSize().height + 4));
    JPanel4.setPreferredSize(
        new Dimension(
            JPanel4.getPreferredSize().width + 507, JPanel4.getPreferredSize().height + 293));
    JLabel1.setPreferredSize(
        new Dimension(
            JLabel1.getPreferredSize().width + 132, JLabel1.getPreferredSize().height + 8));
    JPanel3.setPreferredSize(
        new Dimension(
            JPanel3.getPreferredSize().width + 168, JPanel3.getPreferredSize().height + 6));

    // <End_setUpProperties>
  }
示例#11
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