void propDialog_actionPerformed(ActionEvent evt) { String cmd = evt.getActionCommand(); if (cmd.equals("Cancel") == false) { createContext( propDialog.getHost(), propDialog.getPort(), propDialog.getCommunityName(), propDialog.getSocketType()); sendGetRequest(); } else { System.exit(0); } }
public void init() { try { createPropertyDialog(); propDialog.setVisible(true); propDialog.toFront(); /* */ createContext( propDialog.getHost(), propDialog.getPort(), propDialog.getCommunityName(), propDialog.getSocketType()); sendGetRequest(); } catch (Exception exc) { exc.printStackTrace(); } }