private void onRemoveGraph() { // i18n[graph.delGraph=Do you really wish to delete this graph?] Window parent = SwingUtilities.windowForComponent(_desktopPane); int res = JOptionPane.showConfirmDialog(parent, s_stringMgr.getString("graph.delGraph")); if (res == JOptionPane.YES_OPTION) { _listener.removeRequest(); } }