public boolean run(String sDialogTitle, java.util.List<SortedRuleVO> excludeRules) throws RemoteException { this.pnlRules = new InsertRulePanel(); final SelectRuleTableModel tblmodel = new SelectRuleTableModel(); tblmodel.setExcludeRules(excludeRules); pnlRules.setModel(tblmodel); TableUtils.setPreferredColumnWidth(pnlRules.getTblRules(), 10, 10); final JOptionPane optionPane = new JOptionPane(pnlRules, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION); optionPane.setInitialValue(null); pnlRules .getTblRules() .addMouseListener( new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() > 1) { optionPane.setValue(JOptionPane.OK_OPTION); } } }); final JDialog dlg = optionPane.createDialog( getParent(), getSpringLocaleDelegate().getMessage("InsertRuleController.1", "Regelauswahl")); dlg.setResizable(true); dlg.setVisible(true); boolean result = false; if (optionPane.getValue() != null) { final int iBtn = (Integer) optionPane.getValue(); result = (iBtn == JOptionPane.OK_OPTION); } return result; }