public void mouseEvt(MouseEvent evt) { if (evt.isPopupTrigger()) { propDialog.setVisible(true); propDialog.toFront(); evt.consume(); } }
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(); } }
public void init() { try { createPropertyDialog(); jbInit(); propDialog.setVisible(true); propDialog.toFront(); createContext( propDialog.getHost(), propDialog.getPort(), propDialog.getCommunityName(), propDialog.getSocketType()); sendGetRequest(toid.getText()); } catch (Exception exc) { exc.printStackTrace(); lmessage.setText("Exception: " + exc.getMessage()); lmessage.setBackground(Color.red); } }